mirror of
https://github.com/tuxdotrs/tnvim.git
synced 2025-08-23 16:11:02 +05:30
Compare commits
4 Commits
4f6726a7b3
...
main
Author | SHA1 | Date | |
---|---|---|---|
04090c3ff3
|
|||
32befeaebe
|
|||
491f2bc7b8
|
|||
47680ce467
|
@@ -1,6 +1,6 @@
|
|||||||
local opts = {
|
local opts = {
|
||||||
provider = "hyperbolic",
|
provider = "gemini",
|
||||||
vendors = {
|
providers = {
|
||||||
deepseek = {
|
deepseek = {
|
||||||
__inherited_from = "openai",
|
__inherited_from = "openai",
|
||||||
api_key_name = "DEEPSEEK_API_KEY",
|
api_key_name = "DEEPSEEK_API_KEY",
|
||||||
@@ -8,12 +8,18 @@ local opts = {
|
|||||||
model = "deepseek-chat",
|
model = "deepseek-chat",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
gemini = {
|
||||||
|
__inherited_from = "openai",
|
||||||
|
api_key_name = "cmd:cat /run/secrets/gemini_api_key",
|
||||||
|
endpoint = "https://generativelanguage.googleapis.com/v1beta/openai",
|
||||||
|
model = "models/gemini-2.5-pro",
|
||||||
|
},
|
||||||
|
|
||||||
hyperbolic = {
|
hyperbolic = {
|
||||||
__inherited_from = "openai",
|
__inherited_from = "openai",
|
||||||
api_key_name = "cmd:cat /run/secrets/hyperbolic_api_key",
|
api_key_name = "cmd:cat /run/secrets/hyperbolic_api_key",
|
||||||
endpoint = "https://api.hyperbolic.xyz/v1",
|
endpoint = "https://api.hyperbolic.xyz/v1",
|
||||||
model = "deepseek-ai/DeepSeek-R1",
|
model = "deepseek-ai/DeepSeek-R1",
|
||||||
temperature = 0,
|
|
||||||
max_tokens = 4096,
|
max_tokens = 4096,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@@ -4,7 +4,7 @@ local capabilities = configs.capabilities
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
local servers = { "eslint", "gopls", "templ", "pyright", "ruff" }
|
local servers = { "eslint", "gopls", "templ", "pyright", "ruff", "svelte" }
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup({
|
lspconfig[lsp].setup({
|
||||||
@@ -42,6 +42,6 @@ lspconfig.htmx.setup({
|
|||||||
lspconfig.tailwindcss.setup({
|
lspconfig.tailwindcss.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
filetypes = { "templ", "astro", "javascript", "typescript", "react", "typescriptreact" },
|
filetypes = { "templ", "astro", "javascript", "typescript", "react", "typescriptreact", "svelte" },
|
||||||
init_options = { userLanguages = { templ = "html" } },
|
init_options = { userLanguages = { templ = "html" } },
|
||||||
})
|
})
|
||||||
|
@@ -16,6 +16,7 @@ M.treesitter = {
|
|||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
"tsx",
|
"tsx",
|
||||||
|
"svelte",
|
||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nix",
|
"nix",
|
||||||
@@ -48,6 +49,7 @@ M.mason = {
|
|||||||
"eslint-lsp",
|
"eslint-lsp",
|
||||||
"eslint_d",
|
"eslint_d",
|
||||||
"tailwindcss-language-server",
|
"tailwindcss-language-server",
|
||||||
|
"svelte-language-server",
|
||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nil",
|
"nil",
|
||||||
|
Reference in New Issue
Block a user