diff --git a/configs/init.lua b/configs/init.lua index 4460509..5b6ea8a 100644 --- a/configs/init.lua +++ b/configs/init.lua @@ -22,6 +22,8 @@ paq:setup({verbose = true}) { "karb94/neoscroll.nvim", "alexghergh/nvim-tmux-navigation", -- Code Navigation + "dense-analysis/ale", + "nathanmsmith/nvim-ale-diagnostic", "junegunn/fzf", "nvim-lua/popup.nvim", "nvim-telescope/telescope.nvim", @@ -38,6 +40,7 @@ paq:setup({verbose = true}) { "nvim-lua/lsp-status.nvim", "hrsh7th/nvim-cmp", -- Autocompletion plugin "hrsh7th/cmp-nvim-lsp", -- LSP source for nvim-cmp + "weilbith/nvim-code-action-menu", --"saadparwaiz1/cmp_luasnip", -- Snippets source for nvim-cmp "L3MON4D3/LuaSnip", -- Snippets plugin {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}, @@ -75,12 +78,7 @@ if u.has_plugin("cmp") then --g.NERDTreeDirArrows = true -- g.NERDTreeCustomOpenArgs = {file = {where = "t"}} - g.nvim_tree_gitignore = 1 - g.nvim_tree_auto_open = 1 - g.nvim_tree_group_empty = 1 - g.nvim_tree_hide_root_folder = 1 g.nvim_tree_root_folder_modifier = ":~:." - g.nvim_tree_lsp_diagnostics = 1 g.nvim_tree_special_files = {} g.nvim_tree_icons = { default = "", @@ -168,7 +166,18 @@ if u.has_plugin("cmp") then -- Toggleterm / Lazygit setup require "lazy-git" - require("nvim-tree.view").View.winopts.signcolumn = "no" + require("nvim-tree").setup { + auto_open = 1, + gitignore = 1, + lsp_diagnostics = 1, + group_empty = 1, + hide_root_folder = true, + view = { + winopts = { + signcolumn = "no" + } + } + } -- Autocommands --[[ u.create_augroup(]] diff --git a/configs/lua/keymappings.lua b/configs/lua/keymappings.lua index 01b892c..0257612 100644 --- a/configs/lua/keymappings.lua +++ b/configs/lua/keymappings.lua @@ -1,16 +1,19 @@ local map = vim.api.nvim_set_keymap local g = vim.g -options = {noremap = true} -remap = {noremap = false} +local options = {noremap = true} +local remap = {noremap = false} map("n", "", "", remap) map("n", " ", "", remap) g.mapleader = " " map("n", "", ":Telescope find_files", options) -map("n", "", ":Telescope grep_string", options) +--map("n", "", ":Telescope grep_string", options) map("n", "", ":Telescope live_grep", options) + +map("n", "c", ":CodeActionMenu", remap) + -- Navigate Buffers map("n", "", "h", options) map("n", "", "j", options)