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