diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/ftplugin/html.lua | 8 | ||||
| -rw-r--r-- | nvim/lua/plugins/format.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/nvim/ftplugin/html.lua b/nvim/ftplugin/html.lua new file mode 100644 index 0000000..009e21d --- /dev/null +++ b/nvim/ftplugin/html.lua | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | local opt = vim.opt_local | ||
| 2 | |||
| 3 | opt.tabstop = 2 | ||
| 4 | opt.softtabstop = 2 | ||
| 5 | opt.shiftwidth = 2 | ||
| 6 | opt.expandtab = true | ||
| 7 | opt.autoindent = true | ||
| 8 | opt.foldenable = true | ||
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 31533b6..f80ee2d 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -16,6 +16,7 @@ return { | |||
| 16 | bash = { "shfmt" }, -- brew install shfmt, pkg install shfmt | 16 | bash = { "shfmt" }, -- brew install shfmt, pkg install shfmt |
| 17 | c = {}, -- clangd | 17 | c = {}, -- clangd |
| 18 | cpp = {}, -- clangd | 18 | cpp = {}, -- clangd |
| 19 | html = { "prettier" }, -- (siehe "typescript") | ||
| 19 | javascript = { "prettier" }, -- (siehe "typescript") | 20 | javascript = { "prettier" }, -- (siehe "typescript") |
| 20 | json = { "jq" }, -- brew install jq, pkg install jq | 21 | json = { "jq" }, -- brew install jq, pkg install jq |
| 21 | lua = { "stylua" }, -- brew install stylua, pkg install stylua | 22 | lua = { "stylua" }, -- brew install stylua, pkg install stylua |
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 8ba3bc7..b301b68 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua | |||
| @@ -60,6 +60,10 @@ return { | |||
| 60 | capabilities = capabilities, | 60 | capabilities = capabilities, |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | vim.lsp.config.html = { | ||
| 64 | capabilities = capabilities, | ||
| 65 | } | ||
| 66 | |||
| 63 | vim.lsp.config.vtsls = { | 67 | vim.lsp.config.vtsls = { |
| 64 | capabilities = capabilities, | 68 | capabilities = capabilities, |
| 65 | settings = { | 69 | settings = { |
| @@ -109,6 +113,7 @@ return { | |||
| 109 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright | 113 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright |
| 110 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck | 114 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck |
| 111 | "clangd", -- pkg install llvm | 115 | "clangd", -- pkg install llvm |
| 116 | "html", -- npm install -g vscode-langservers-extracted | ||
| 112 | "jsonls", -- npm install -g vscode-langservers-extracted | 117 | "jsonls", -- npm install -g vscode-langservers-extracted |
| 113 | "lua_ls", -- pkg install lua-language-server, brew install lua-language-server | 118 | "lua_ls", -- pkg install lua-language-server, brew install lua-language-server |
| 114 | "prismals", -- npm install -g @prisma/language-server | 119 | "prismals", -- npm install -g @prisma/language-server |
