diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..b9c3afe0 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,11 @@ +return { + { + 'CopilotC-Nvim/CopilotChat.nvim', + dependencies = { + { 'github/copilot.vim' }, + { 'nvim-lua/plenary.nvim', branch = 'master' }, + }, + build = 'make tiktoken', + opts = {}, + }, +} diff --git a/lua/custom/plugins/spellcheck.lua b/lua/custom/plugins/spellcheck.lua new file mode 100644 index 00000000..49698493 --- /dev/null +++ b/lua/custom/plugins/spellcheck.lua @@ -0,0 +1,38 @@ +return { + 'nvimtools/none-ls.nvim', + event = 'VeryLazy', + dependencies = 'davidmh/cspell.nvim', + config = function() + local null_ls = require 'null-ls' + local cspell = require 'cspell' + local cspell_config = { + diagnostics_postprocess = function(diagnostic) + diagnostic.severity = vim.diagnostic.severity['HINT'] + end, + config = { + config_file_preferred_name = 'config.json', + cspell_config_dirs = { '~/.config/cspell/' }, + on_add_to_json = function(payload) + os.execute( + string.format( + "jq -S '.words |= sort' %s > %s.tmp && mv %s.tmp %s", + payload.cspell_config_path, + payload.cspell_config_path, + payload.cspell_config_path, + payload.cspell_config_path + ) + ) + end, + on_add_to_dictionary = function(payload) + os.execute(string.format('sort %s -o %s', payload.dictionary_path, payload.dictionary_path)) + end, + }, + } + null_ls.setup { + sources = { + cspell.diagnostics.with(cspell_config), + cspell.code_actions.with(cspell_config), + }, + } + end, +} diff --git a/lua/custom/plugins/trouble.lua b/lua/custom/plugins/trouble.lua new file mode 100644 index 00000000..d0578c9f --- /dev/null +++ b/lua/custom/plugins/trouble.lua @@ -0,0 +1,37 @@ +return { + 'folke/trouble.nvim', + opts = {}, -- for default options, refer to the configuration section for custom setup. + cmd = 'Trouble', + keys = { + { + 'xx', + 'Trouble diagnostics toggle', + desc = 'Diagnostics (Trouble)', + }, + { + 'xX', + 'Trouble diagnostics toggle filter.buf=0', + desc = 'Buffer Diagnostics (Trouble)', + }, + { + 'cs', + 'Trouble symbols toggle focus=false', + desc = 'Symbols (Trouble)', + }, + { + 'cl', + 'Trouble lsp toggle focus=false win.position=right', + desc = 'LSP Definitions / references / ... (Trouble)', + }, + { + 'xL', + 'Trouble loclist toggle', + desc = 'Location List (Trouble)', + }, + { + 'xQ', + 'Trouble qflist toggle', + desc = 'Quickfix List (Trouble)', + }, + }, +} diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 2e8d06c1..d83598c0 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -139,6 +139,44 @@ return { disconnect = '⏏', }, }, + layouts = { + { + elements = { + { + id = 'scopes', + size = 0.25, + }, + { + id = 'breakpoints', + size = 0.25, + }, + { + id = 'stacks', + size = 0.25, + }, + { + id = 'watches', + size = 0.25, + }, + }, + position = 'left', + size = 40, + }, + { + elements = { + -- { + -- id = 'repl', + -- size = 1, + -- }, + { + id = 'console', + size = 1, + }, + }, + position = 'bottom', + size = 10, + }, + }, } -- Change breakpoint icons