diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-01-21 08:23:11 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-01-21 08:23:11 +0100 |
| commit | 23ff2cff5b7f598fd28026aa089d7304e9f301f4 (patch) | |
| tree | ebffcdfa3074afae3b6bd7689ae3738fcd594c5d | |
| parent | 2f573c93f914ad7b4c8a11c8ed800c30602ae2e2 (diff) | |
| download | dotfiles-23ff2cff5b7f598fd28026aa089d7304e9f301f4.tar.gz dotfiles-23ff2cff5b7f598fd28026aa089d7304e9f301f4.tar.bz2 dotfiles-23ff2cff5b7f598fd28026aa089d7304e9f301f4.zip | |
neovim: Unterstützung für Prisma hinzugefügt
| -rw-r--r-- | nvim/lua/config/autocmds.lua | 9 | ||||
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 7 | ||||
| -rw-r--r-- | nvim/lua/plugins/treesitter.lua | 7 |
3 files changed, 18 insertions, 5 deletions
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 @@ | |||
| 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt | 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt |
| 2 | vim.api.nvim_create_autocmd("FileType", { | 2 | vim.api.nvim_create_autocmd("FileType", { |
| 3 | pattern = { "c", "cpp", "lua", "python", "typescript" }, | 3 | pattern = { |
| 4 | "c", | ||
| 5 | "cpp", | ||
| 6 | "lua", | ||
| 7 | "prisma", | ||
| 8 | "python", | ||
| 9 | "typescript", | ||
| 10 | }, | ||
| 4 | callback = function() | 11 | callback = function() |
| 5 | vim.treesitter.start() | 12 | vim.treesitter.start() |
| 6 | vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" | 13 | 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 { | |||
| 38 | capabilities = capabilities, | 38 | capabilities = capabilities, |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | vim.lsp.config.prismals = { | ||
| 42 | capabilities = capabilities, | ||
| 43 | } | ||
| 44 | |||
| 41 | vim.lsp.config.ts_ls = { | 45 | vim.lsp.config.ts_ls = { |
| 42 | capabilities = capabilities, | 46 | capabilities = capabilities, |
| 43 | settings = { | 47 | settings = { |
| @@ -74,11 +78,12 @@ return { | |||
| 74 | } | 78 | } |
| 75 | 79 | ||
| 76 | vim.lsp.enable({ | 80 | vim.lsp.enable({ |
| 81 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright | ||
| 77 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck | 82 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck |
| 78 | "clangd", -- pkg install llvm | 83 | "clangd", -- pkg install llvm |
| 79 | "lua_ls", -- pkg install lua-language-server | 84 | "lua_ls", -- pkg install lua-language-server |
| 85 | "prismals", -- npm install -g @prisma/language-server | ||
| 80 | "ts_ls", -- npm install -g typescript typescript-language-server | 86 | "ts_ls", -- npm install -g typescript typescript-language-server |
| 81 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright | ||
| 82 | }) | 87 | }) |
| 83 | end, | 88 | end, |
| 84 | }, | 89 | }, |
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 { | |||
| 21 | "c", | 21 | "c", |
| 22 | "cpp", | 22 | "cpp", |
| 23 | "html", | 23 | "html", |
| 24 | "python", | ||
| 25 | "vim", | ||
| 26 | "vimdoc", | ||
| 27 | "javascript", | 24 | "javascript", |
| 28 | "lua", | 25 | "lua", |
| 26 | "prisma", | ||
| 27 | "python", | ||
| 29 | "typescript", | 28 | "typescript", |
| 30 | "vim", | 29 | "vim", |
| 30 | "vim", | ||
| 31 | "vimdoc", | ||
| 31 | }) | 32 | }) |
| 32 | end, | 33 | end, |
| 33 | }, | 34 | }, |
