diff options
-rw-r--r-- | common/vim.nix | 5 | ||||
-rw-r--r-- | dotfiles/vim.lua | 28 |
2 files changed, 33 insertions, 0 deletions
diff --git a/common/vim.nix b/common/vim.nix index 17d18ac..47dc04f 100644 --- a/common/vim.nix +++ b/common/vim.nix | |||
@@ -71,7 +71,9 @@ let | |||
71 | lualine-lsp-progress | 71 | lualine-lsp-progress |
72 | gitsigns-nvim | 72 | gitsigns-nvim |
73 | diffview-nvim | 73 | diffview-nvim |
74 | nvim-notify | ||
74 | 75 | ||
76 | # Completion | ||
75 | nvim-cmp | 77 | nvim-cmp |
76 | cmp-buffer | 78 | cmp-buffer |
77 | cmp-calc | 79 | cmp-calc |
@@ -84,9 +86,11 @@ let | |||
84 | cmp-treesitter | 86 | cmp-treesitter |
85 | cmp-vsnip | 87 | cmp-vsnip |
86 | 88 | ||
89 | # Snippets | ||
87 | vim-vsnip | 90 | vim-vsnip |
88 | vim-vsnip-integ | 91 | vim-vsnip-integ |
89 | 92 | ||
93 | # Telescope | ||
90 | telescope-nvim | 94 | telescope-nvim |
91 | telescope-file-browser-nvim | 95 | telescope-file-browser-nvim |
92 | telescope-ui-select-nvim | 96 | telescope-ui-select-nvim |
@@ -120,6 +124,7 @@ let | |||
120 | tabular | 124 | tabular |
121 | vim-abolish | 125 | vim-abolish |
122 | vim-oscyank | 126 | vim-oscyank |
127 | comment-nvim | ||
123 | ] ++ config.vim.extraPlugins; | 128 | ] ++ config.vim.extraPlugins; |
124 | }; | 129 | }; |
125 | }; | 130 | }; |
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index 0e89ba6..05af6de 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua | |||
@@ -285,6 +285,34 @@ require("neogit").setup { | |||
285 | }, | 285 | }, |
286 | } | 286 | } |
287 | 287 | ||
288 | -- Notify | ||
289 | |||
290 | vim.cmd [[highlight link NotifyERRORBorder DiagnosticError]] | ||
291 | vim.cmd [[highlight link NotifyERRORIcon DiagnosticError]] | ||
292 | vim.cmd [[highlight link NotifyERRORTitle DiagnosticError]] | ||
293 | |||
294 | vim.cmd [[highlight link NotifyWARNBorder DiagnosticWarn]] | ||
295 | vim.cmd [[highlight link NotifyWARNIcon DiagnosticWarn]] | ||
296 | vim.cmd [[highlight link NotifyWARNTitle DiagnosticWarn]] | ||
297 | |||
298 | vim.cmd [[highlight link NotifyINFOBorder DiagnosticInfo]] | ||
299 | vim.cmd [[highlight link NotifyINFOIcon DiagnosticInfo]] | ||
300 | vim.cmd [[highlight link NotifyINFOTitle DiagnosticInfo]] | ||
301 | |||
302 | vim.cmd [[highlight link NotifyDEBUGBorder DiagnosticHint]] | ||
303 | vim.cmd [[highlight link NotifyDEBUGIcon DiagnosticHint]] | ||
304 | vim.cmd [[highlight link NotifyDEBUGTitle DiagnosticHint]] | ||
305 | |||
306 | vim.cmd [[highlight link NotifyDEBUGBorder GruvboxPurple]] | ||
307 | vim.cmd [[highlight link NotifyDEBUGIcon GruvboxPurple]] | ||
308 | vim.cmd [[highlight link NotifyDEBUGTitle GruvboxPurple]] | ||
309 | |||
310 | vim.notify = require("notify") | ||
311 | |||
312 | -- Comment | ||
313 | |||
314 | require('Comment').setup {} | ||
315 | |||
288 | -- Local config | 316 | -- Local config |
289 | 317 | ||
290 | function isModuleAvailable(name) | 318 | function isModuleAvailable(name) |