diff options
| author | triethyl <triethylammonium@pm.me> | 2025-07-22 12:50:08 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-07-22 12:50:08 -0400 |
| commit | 6fae3be80b67abfda8e475542625169dd6e77f31 (patch) | |
| tree | abfeafd6a3e3922394f0827149a3fcebdf8d2c42 /pkgs/custom-neovim/config/lua/plugins | |
| parent | 50018aa0305bd2c5cf91431c128895fc0121d2fa (diff) | |
working on custom neovim
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins')
4 files changed, 33 insertions, 3 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua b/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua index 850ebe5..a18b80d 100644 --- a/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua +++ b/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua @@ -1,5 +1,3 @@ --- vim.keymap.set('n', '<space>d', vim.diagnostic.setloclist, {desc = "Add buffer diagnostics to the location list."}) - -- Disable semantic tokens to stop weird highlighting. vim.api.nvim_create_autocmd('LspAttach', { callback = function(ev) @@ -40,7 +38,7 @@ vim.api.nvim_create_autocmd('LspAttach', { mapkey("n", "<leader>S", "Open workspace symbol picker", ":lua Snacks.picker.lsp_workspace_symbols()<cr>") -- LSP Pickers - mapkey({'n', 'v'}, "<leader>a", "Perform code action", require("actions-preview").code_actions) + mapkey('n', "<leader>a", "Perform code action", require("actions-preview").code_actions) mapkey("n", "<leader>D", "Open workspace diagnostic picker", ":lua Snacks.picker.diagnostics()<cr>") mapkey("n", "<leader>d", "Open diagnostic picker", [[:lua Snacks.picker.diagnostics_buffer()<cr>]]) diff --git a/pkgs/custom-neovim/config/lua/plugins/mini/files.lua b/pkgs/custom-neovim/config/lua/plugins/mini/files.lua new file mode 100644 index 0000000..e64aefa --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/mini/files.lua @@ -0,0 +1,20 @@ +require("mini.files").setup { + mappings = { + close = '<esc>', + go_in = 'l', + go_in_plus = 'L', + go_out = 'h', + go_out_plus = 'H', + mark_goto = "'", + mark_set = 'm', + reset = '<BS>', + reveal_cwd = '@', + show_help = 'g?', + synchronize = '=', + trim_left = '<', + trim_right = '>', + }, + windows = { + preview = true, + }, +} diff --git a/pkgs/custom-neovim/config/lua/plugins/oil.lua b/pkgs/custom-neovim/config/lua/plugins/oil.lua new file mode 100644 index 0000000..6682599 --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/oil.lua @@ -0,0 +1,11 @@ +require('oil').setup { + win_options = { + wrap = true, + }, + skip_confirm_for_simple_edits = true, + watch_for_changes = true, + float = { + max_width = 0.6, + max_height = 0.8, + }, +} diff --git a/pkgs/custom-neovim/config/lua/plugins/persisted.lua b/pkgs/custom-neovim/config/lua/plugins/persisted.lua index 6f0273e..043c130 100644 --- a/pkgs/custom-neovim/config/lua/plugins/persisted.lua +++ b/pkgs/custom-neovim/config/lua/plugins/persisted.lua @@ -1,3 +1,4 @@ require("persisted").setup { autostart = true, + autoload = true, } |
