diff --git a/init.lua b/init.lua index 6cec6be5..858ccf2a 100644 --- a/init.lua +++ b/init.lua @@ -102,7 +102,7 @@ vim.g.have_nerd_font = false vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -279,6 +279,7 @@ require('lazy').setup({ require 'kickstart.plugins.lsp', + require 'kickstart.plugins.autopairs', { -- Autoformat 'stevearc/conform.nvim', lazy = false, diff --git a/lua/kickstart/plugins/lsp.lua b/lua/kickstart/plugins/lsp.lua index 5c9ba1ee..570a7b4c 100644 --- a/lua/kickstart/plugins/lsp.lua +++ b/lua/kickstart/plugins/lsp.lua @@ -238,13 +238,19 @@ return { -- plugins = { -- pycodestyle = { -- ignore = {}, - -- maxLineLength = 120, + -- maxLineLength = 120, -- }, -- }, -- } -- } -- }, - -- rust_analyzer = {}, + rust_analyzer = { + alias = 'rust-analyzer', + }, + + markdown_oxide = { + alias = 'markdown-oxide', + }, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -253,7 +259,9 @@ return { -- But for many setups, the LSP (`tsserver`) will work just fine -- tsserver = {}, -- - nixd = {}, + ['nil_ls'] = { + alias = 'nil', + }, bashls = { alias = 'bash-language-server', },