Skip to content

Commit

Permalink
tweak neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 13, 2024
1 parent 12b99e6 commit d333c0c
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions modules/wrapper-manager/neovim/viper-init-plugin/lua/viper/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ vim.filetype.add {
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local nvim_lsp = require("lspconfig")

local root_pattern = nvim_lsp.util.root_pattern

vim.keymap.set("n", "<leader>.", vim.lsp.buf.hover, { desc = "LSP hover" })
vim.keymap.set("n", "<C-.>", vim.lsp.buf.code_action, { desc = "LSP action" })

Expand Down Expand Up @@ -84,17 +86,26 @@ nvim_lsp.ltex.setup {
nvim_lsp.astro.setup {
capabilities = capabilities,
}
nvim_lsp.eslint.setup {
-- nvim_lsp.eslint.setup {
-- capabilities = capabilities,
-- }
nvim_lsp.html.setup {
capabilities = capabilities,
}
nvim_lsp.html.setup {
nvim_lsp.cssls.setup {
capabilities = capabilities,
}
nvim_lsp.tsserver.setup {
vim.g.markdown_fenced_languages = {
"ts=typescript"
}
nvim_lsp.denols.setup {
capabilities = capabilities,
root_dir = nvim_lsp.util.root_pattern("deno.json", "deno.jsonc"),
}
nvim_lsp.cssls.setup {
nvim_lsp.tsserver.setup {
capabilities = capabilities,
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
}
--

Expand Down

0 comments on commit d333c0c

Please sign in to comment.