From 23ff2cff5b7f598fd28026aa089d7304e9f301f4 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 21 Jan 2026 08:23:11 +0100 Subject: neovim: Unterstützung für Prisma hinzugefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/config/autocmds.lua | 9 ++++++++- nvim/lua/plugins/lsp.lua | 7 ++++++- nvim/lua/plugins/treesitter.lua | 7 ++++--- 3 files changed, 18 insertions(+), 5 deletions(-) (limited to 'nvim') diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 6be82dd..09aea1e 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua @@ -1,6 +1,13 @@ -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt vim.api.nvim_create_autocmd("FileType", { - pattern = { "c", "cpp", "lua", "python", "typescript" }, + pattern = { + "c", + "cpp", + "lua", + "prisma", + "python", + "typescript", + }, callback = function() vim.treesitter.start() vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 9896430..1a10c3a 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -38,6 +38,10 @@ return { capabilities = capabilities, } + vim.lsp.config.prismals = { + capabilities = capabilities, + } + vim.lsp.config.ts_ls = { capabilities = capabilities, settings = { @@ -74,11 +78,12 @@ return { } vim.lsp.enable({ + "basedpyright", -- npm install -g basedpyright, brew install basedpyright "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck "clangd", -- pkg install llvm "lua_ls", -- pkg install lua-language-server + "prismals", -- npm install -g @prisma/language-server "ts_ls", -- npm install -g typescript typescript-language-server - "basedpyright", -- npm install -g basedpyright, brew install basedpyright }) end, }, diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 338104a..e0e6beb 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -21,13 +21,14 @@ return { "c", "cpp", "html", - "python", - "vim", - "vimdoc", "javascript", "lua", + "prisma", + "python", "typescript", "vim", + "vim", + "vimdoc", }) end, }, -- cgit v1.3