diff --git a/neovim/.config/nvim/lua/LSPconfig.lua b/neovim/.config/nvim/lua/LSPconfig.lua index 0a1a367..62d809a 100644 --- a/neovim/.config/nvim/lua/LSPconfig.lua +++ b/neovim/.config/nvim/lua/LSPconfig.lua @@ -34,8 +34,8 @@ end -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches --- the packages for these servers are: pyright, rust-analyzer, texlab, and lua-language-server -local servers = { 'pyright', 'texlab'} +-- the packages for these servers are: pyright, rust-analyzer, texlab, and lua-language-server, deno, den +local servers = { 'pyright', 'texlab', 'denols'} for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { flags = { @@ -44,6 +44,11 @@ for _, lsp in ipairs(servers) do } end +--deno typescript configuration +vim.g.markdown_fenced_languages = { + "ts=typescript" +} + --rust configuration local rustOpts = { tools = { -- rust-tools options diff --git a/neovim/.config/nvim/lua/cmp-lsp.lua b/neovim/.config/nvim/lua/cmp-lsp.lua index a518f2d..175daff 100644 --- a/neovim/.config/nvim/lua/cmp-lsp.lua +++ b/neovim/.config/nvim/lua/cmp-lsp.lua @@ -10,7 +10,7 @@ local luasnip = require 'luasnip' local lspconfig = require('lspconfig') -- Enable some language servers with the additional completion capabilities offered by nvim-cmp -local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver' } +local servers = {'texlab', 'rust_analyzer', 'pyright', 'denols'} for _, lsp in ipairs(servers) do lspconfig[lsp].setup { -- on_attach = my_custom_on_attach,