diff options
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/simenandre/plugins/dap.lua | 4 | ||||
| -rw-r--r-- | .config/nvim/lua/simenandre/plugins/oil.lua | 21 | ||||
| -rw-r--r-- | .config/nvim/lua/simenandre/plugins/plugins.lua | 23 |
3 files changed, 44 insertions, 4 deletions
diff --git a/.config/nvim/lua/simenandre/plugins/dap.lua b/.config/nvim/lua/simenandre/plugins/dap.lua new file mode 100644 index 0000000..686e535 --- /dev/null +++ b/.config/nvim/lua/simenandre/plugins/dap.lua @@ -0,0 +1,4 @@ +return { + "mfussenegger/nvim-dap", + "leoluz/nvim-dap-go", +} diff --git a/.config/nvim/lua/simenandre/plugins/oil.lua b/.config/nvim/lua/simenandre/plugins/oil.lua new file mode 100644 index 0000000..1861543 --- /dev/null +++ b/.config/nvim/lua/simenandre/plugins/oil.lua @@ -0,0 +1,21 @@ +return { + "stevearc/oil.nvim", + opts = {}, + -- Optional dependencies + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function() + require("oil").setup({ + columns = { "icon" }, + keymaps = { + ["<C-h>"] = false, + ["<M-h>"] = "actions.select_split", + }, + view_options = { + show_hidden = true, + }, + }) + + -- Open parent directory in current window + vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) + end, +} diff --git a/.config/nvim/lua/simenandre/plugins/plugins.lua b/.config/nvim/lua/simenandre/plugins/plugins.lua index e502cca..d1bb456 100644 --- a/.config/nvim/lua/simenandre/plugins/plugins.lua +++ b/.config/nvim/lua/simenandre/plugins/plugins.lua @@ -137,7 +137,6 @@ return { vim.keymap.set("n", "<leader>/", function() -- You can pass additional configuration to Telescope to change the theme, layout, etc. builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({ - winblend = 10, previewer = false, })) end, { desc = "[/] Fuzzily search in current buffer" }) @@ -320,7 +319,7 @@ return { -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, -- pyright = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -594,7 +593,23 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", opts = { - ensure_installed = { "bash", "c", "diff", "html", "lua", "luadoc", "markdown", "vim", "vimdoc" }, + ensure_installed = { + "bash", + "c", + "diff", + "html", + "lua", + "luadoc", + "markdown", + "vim", + "vimdoc", + "go", + "json", + "yaml", + "toml", + "gomod", + "gosum", + }, -- Autoinstall languages that are not installed auto_install = true, highlight = { @@ -604,7 +619,7 @@ return { -- the list of additional_vim_regex_highlighting and disabled languages for indent. additional_vim_regex_highlighting = { "ruby" }, }, - indent = { enable = true, disable = { "ruby" } }, + indent = { enable = true, disable = { "ruby", "go" } }, }, config = function(_, opts) -- [[ Configure Treesitter ]] See `:help nvim-treesitter` |
