diff options
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/lazy.lua | 53 | ||||
-rw-r--r-- | lua/config/lsp.lua | 4 | ||||
-rw-r--r-- | lua/config/map.lua | 1 |
3 files changed, 24 insertions, 34 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a61e3b4..5aed367 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -23,41 +23,35 @@ require("lazy").setup({ "jghauser/follow-md-links.nvim", "m4xshen/autoclose.nvim", "stevearc/conform.nvim", + "norcalli/nvim-colorizer.lua", + "neovim/nvim-lspconfig", + { + "williamboman/mason.nvim", + dependencies = { + "williamboman/mason-lspconfig.nvim", + -- for formatters and linters + "WhoIsSethDaniel/mason-tool-installer.nvim", + }, + config = function() + require("mason").setup({ + ui = { + border = "rounded", + }, + }) + end, + }, + { + --snippets + "L3MON4D3/LuaSnip", + version = "v2.*", + build = "make install_jsregexp", + }, -- "mfussenegger/nvim-lint", - -- "neovim/nvim-lspconfig", - -- { - -- "norcalli/nvim-colorizer.lua", - -- config = function() - -- -- require("colorizer").setup() - -- end, - -- }, - -- - -- { - -- "williamboman/mason.nvim", - -- dependencies = { - -- "williamboman/mason-lspconfig.nvim", - -- -- for formatters and linters - -- "WhoIsSethDaniel/mason-tool-installer.nvim", - -- }, - -- config = function() - -- require("mason").setup({ - -- ui = { - -- border = "rounded", - -- }, - -- }) - -- end, - -- }, -- { -- "ray-x/lsp_signature.nvim", -- event = "LspAttach", -- }, -- { - -- --snippets - -- "L3MON4D3/LuaSnip", - -- version = "v2.*", - -- build = "make install_jsregexp", - -- }, - -- { -- "hrsh7th/nvim-cmp", -- dependencies = { -- "hrsh7th/cmp-nvim-lsp", @@ -68,7 +62,6 @@ require("lazy").setup({ -- }, -- event = { "InsertEnter", "CmdlineEnter" }, -- }, - { "folke/which-key.nvim", event = "VeryLazy", diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 977c629..8d03d84 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -1,12 +1,8 @@ -- [[ Keybinds ]] -local capabilities = require("cmp_nvim_lsp").default_capabilities() -local cmp = require("cmp") -local context = require("cmp.config.context") local diagnostic = vim.diagnostic local lbuf = vim.lsp.buf local map = vim.keymap.set local lspconfig = require("lspconfig") -local lspkind = require("lspkind") local builtin = require("telescope.builtin") map("n", " <cr>", lbuf.code_action, { desc = "Code actions" }) diff --git a/lua/config/map.lua b/lua/config/map.lua index ace8134..7dcf82a 100644 --- a/lua/config/map.lua +++ b/lua/config/map.lua @@ -89,6 +89,7 @@ map("n", " ts", function() vim.o.spell = verbose_toggle(vim.o.spell, "spelling") end, { noremap = true, desc = "Toggle spelling" }) map("n", "<C-s>g", "z=1<cr><cr>", { noremap = true }) +vim.diagnostic.enable(false) map("n", " td", function() vim.diagnostic.enable(verbose_toggle(vim.diagnostic.is_enabled(), "diagnostics")) end, { desc = "Toggle diagnostics" }) |