Skip to content

Commit

Permalink
feat: Add nvim-surround plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
redyf committed Jan 13, 2024
1 parent fb0f852 commit 3a9fbac
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
45 changes: 45 additions & 0 deletions config/completion/copilot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,49 @@
plugins.copilot-lua = {
enable = false;
};
extraConfigLua = ''
require('copilot').setup({
panel = {
enabled = true,
auto_refresh = false,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "bottom", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = false,
debounce = 75,
keymap = {
accept = "<M-l>",
accept_word = false,
accept_line = false,
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
},
filetypes = {
yaml = false,
markdown = false,
help = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
copilot_node_command = 'node', -- Node.js version must be > 18.x
server_opts_overrides = {},
})
'';
}
9 changes: 5 additions & 4 deletions config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
./languages/treesitter/treesitter.nix
./languages/treesitter/treesitter-textobjects.nix
./languages/treesitter/ts-autotag.nix
./languages/treesitter/ts-context-commentstring.nix

./lsp/lsp.nix
./lsp/conform.nix
Expand All @@ -51,17 +52,17 @@
./utils/better-escape.nix
./utils/discordrpc.nix
./utils/flash.nix
./utils/toggleterm.nix
./utils/harpoon.nix
./utils/markdown-preview.nix
./utils/mini.nix
./utils/nvim-colorizer.nix
./utils/nvim-autopairs.nix
./utils/nvim-colorizer.nix
./utils/nvim-surround.nix
./utils/persistence.nix
./utils/plenary.nix
./utils/todo-comments.nix
./utils/tmux-navigator.nix
./utils/ts-context-commentstring.nix
./utils/todo-comments.nix
./utils/toggleterm.nix
./utils/undotree.nix
./utils/vim-startuptime.nix
./utils/wakatime.nix
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions config/utils/nvim-surround.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ pkgs, ... }: {
extraPlugins = with pkgs.vimPlugins; [
nvim-surround
];
}

0 comments on commit 3a9fbac

Please sign in to comment.