Install extra plugins
This commit is contained in:
parent
9f3b37bc10
commit
0e1e3bc042
|
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
{
|
||||
'CopilotC-Nvim/CopilotChat.nvim',
|
||||
dependencies = {
|
||||
{ 'github/copilot.vim' },
|
||||
{ 'nvim-lua/plenary.nvim', branch = 'master' },
|
||||
},
|
||||
build = 'make tiktoken',
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
|
|
@ -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,
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
return {
|
||||
'folke/trouble.nvim',
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
cmd = 'Trouble',
|
||||
keys = {
|
||||
{
|
||||
'<leader>xx',
|
||||
'<cmd>Trouble diagnostics toggle<cr>',
|
||||
desc = 'Diagnostics (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xX',
|
||||
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
|
||||
desc = 'Buffer Diagnostics (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>cs',
|
||||
'<cmd>Trouble symbols toggle focus=false<cr>',
|
||||
desc = 'Symbols (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>cl',
|
||||
'<cmd>Trouble lsp toggle focus=false win.position=right<cr>',
|
||||
desc = 'LSP Definitions / references / ... (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xL',
|
||||
'<cmd>Trouble loclist toggle<cr>',
|
||||
desc = 'Location List (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xQ',
|
||||
'<cmd>Trouble qflist toggle<cr>',
|
||||
desc = 'Quickfix List (Trouble)',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue