mirror of
https://github.com/tuxdotrs/tnvim.git
synced 2025-08-23 08:01:02 +05:30
Compare commits
2 Commits
491f2bc7b8
...
main
Author | SHA1 | Date | |
---|---|---|---|
04090c3ff3
|
|||
32befeaebe
|
@@ -1,5 +1,5 @@
|
||||
local opts = {
|
||||
provider = "google",
|
||||
provider = "gemini",
|
||||
providers = {
|
||||
deepseek = {
|
||||
__inherited_from = "openai",
|
||||
@@ -8,9 +8,9 @@ local opts = {
|
||||
model = "deepseek-chat",
|
||||
},
|
||||
|
||||
google = {
|
||||
gemini = {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "cmd:cat /run/secrets/google_api_key",
|
||||
api_key_name = "cmd:cat /run/secrets/gemini_api_key",
|
||||
endpoint = "https://generativelanguage.googleapis.com/v1beta/openai",
|
||||
model = "models/gemini-2.5-pro",
|
||||
},
|
||||
|
@@ -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