diff options
| author | 2026-03-01 22:42:32 +0000 | |
|---|---|---|
| committer | 2026-03-02 01:46:41 +0000 | |
| commit | 171ffed14d6796513e972829a378d723137b517b (patch) | |
| tree | 683bcb51489f1263c36f3bb9ef81c31efa5accc2 /nvim/lua | |
| parent | 2ef3ad6faf5127d946130660d7e7b6f4b5ff5d58 (diff) | |
lsp: adicionados LSPs pra desenvolvimento web (graças a MAC0420)
oil: preferência pelo oil-git ao invés do oil-git-status
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/config/lsp.lua | 2 | ||||
| -rw-r--r-- | nvim/lua/config/options.lua | 1 | ||||
| -rw-r--r-- | nvim/lua/plugins/oil-nvim.lua | 41 |
3 files changed, 21 insertions, 23 deletions
diff --git a/nvim/lua/config/lsp.lua b/nvim/lua/config/lsp.lua index 36ebfa9..6c30fc8 100644 --- a/nvim/lua/config/lsp.lua +++ b/nvim/lua/config/lsp.lua @@ -1,4 +1,4 @@ -vim.lsp.enable({"rust_analyzer", "nil_ls", "denols"}) +vim.lsp.enable({"rust_analyzer", "nil_ls", "denols", "html", "cssls"}) vim.lsp.config("*", { onAttach = function(client, _) diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 39e1a48..b703960 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -18,3 +18,4 @@ vim.opt.signcolumn = "yes"; vim.opt.ignorecase = true; vim.opt.smartcase = true; vim.opt.autochdir = true; +vim.opt.colorcolumn = "80"; diff --git a/nvim/lua/plugins/oil-nvim.lua b/nvim/lua/plugins/oil-nvim.lua index 285b104..0f645c3 100644 --- a/nvim/lua/plugins/oil-nvim.lua +++ b/nvim/lua/plugins/oil-nvim.lua @@ -1,24 +1,21 @@ return { - { - 'stevearc/oil.nvim', - ---@module 'oil' - ---@type oil.SetupOpts - opts = { - vim.keymap.set("n", "<F2>", "<Cmd>Oil<CR>", { desc = "Open parent directory" }), - }, - -- Optional dependencies - -- dependencies = { { "nvim-mini/mini.icons", opts = {} } }, - dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons - -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. - lazy = false, - }, - { - "refractalize/oil-git-status.nvim", - - dependencies = { - "stevearc/oil.nvim", - }, - - config = true, - }, + { + "stevearc/oil.nvim", + ---@module 'oil' + ---@type oil.SetupOpts + opts = { + vim.keymap.set("n", "<F2>", "<Cmd>Oil<CR>", { desc = "Open parent directory" }), + }, + -- Optional dependencies + -- dependencies = { { "nvim-mini/mini.icons", opts = {} } }, + dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons + -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. + lazy = false, + }, + { + "malewicz1337/oil-git.nvim", + dependencies = { + "stevearc/oil.nvim", + }, + }, } |
