Nvim: remove unused modules, update configs
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
--require('femaco').setup()
|
|
||||||
'AckslD/nvim-FeMaco.lua',
|
'AckslD/nvim-FeMaco.lua',
|
||||||
config = true
|
config = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,15 +5,23 @@ return {
|
|||||||
vim.api.nvim_create_augroup(HIGHLIGHT, { clear = true })
|
vim.api.nvim_create_augroup(HIGHLIGHT, { clear = true })
|
||||||
|
|
||||||
require('murmur').setup {
|
require('murmur').setup {
|
||||||
cursor_rgb = 'darkgreen', -- default to '#393939'
|
cursor_rgb = {
|
||||||
|
--guibg = '#393939',
|
||||||
|
gui = "underdotted"
|
||||||
|
},
|
||||||
|
cursor_rgb_always_use_config = true,
|
||||||
max_len = 80, -- maximum word-length to highlight
|
max_len = 80, -- maximum word-length to highlight
|
||||||
-- disable_on_lines = 2000, -- to prevent lagging on large files. Default to 2000 lines.
|
disable_on_lines = 2000, -- to prevent lagging on large files. Default to 2000 lines.
|
||||||
|
yank_blink = {
|
||||||
|
enabled = true,
|
||||||
|
on_yank = nil
|
||||||
|
},
|
||||||
exclude_filetypes = {'log'},
|
exclude_filetypes = {'log'},
|
||||||
callbacks = {
|
callbacks = {
|
||||||
-- to trigger the close_events of vim.diagnostic.open_float.
|
-- to trigger the close_events of vim.diagnostic.open_float.
|
||||||
function ()
|
function ()
|
||||||
-- Close floating diag. and make it triggerable again.
|
-- Close floating diag. and make it triggerable again.
|
||||||
vim.cmd('doautocmd InsertEnter')
|
vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
|
||||||
vim.w.diag_shown = false
|
vim.w.diag_shown = false
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
@@ -27,23 +35,21 @@ return {
|
|||||||
|
|
||||||
-- open float-win when hovering on a cursor-word.
|
-- open float-win when hovering on a cursor-word.
|
||||||
if vim.w.cursor_word ~= '' then
|
if vim.w.cursor_word ~= '' then
|
||||||
vim.diagnostic.open_float(nil, {
|
vim.diagnostic.open_float({
|
||||||
focusable = true,
|
|
||||||
close_events = { 'InsertEnter' },
|
|
||||||
border = 'rounded',
|
|
||||||
source = 'always',
|
|
||||||
prefix = ' ',
|
|
||||||
scope = 'cursor',
|
scope = 'cursor',
|
||||||
|
close_events = { "InsertEnter", "User MurmurDiagnostics" },
|
||||||
|
})
|
||||||
|
vim.api.nvim_create_autocmd("WinClosed", {
|
||||||
|
group = HIGHLIGHT,
|
||||||
|
buffer = buf,
|
||||||
|
once = true,
|
||||||
|
callback = function() vim.w.diag_shown = false end,
|
||||||
})
|
})
|
||||||
vim.w.diag_shown = true
|
vim.w.diag_shown = true
|
||||||
|
else
|
||||||
|
vim.w.diag_shown = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- 'tzachar/local-highlight.nvim',
|
|
||||||
-- config = function()
|
|
||||||
-- require('local-highlight').setup({
|
|
||||||
-- file_types = {'python', 'cpp', 'rust', 'lua', 'cmake'}
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ return {{
|
|||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-lua/popup.nvim",
|
"nvim-lua/popup.nvim",
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
"wellle/targets.vim",
|
"wellle/targets.vim",
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
@@ -24,7 +25,7 @@ return {{
|
|||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- Support for random filetypes {{{
|
-- Support for random filetypes {{{
|
||||||
--"chrisbra/csv.vim",
|
"chrisbra/csv.vim",
|
||||||
--"iamcco/markdown-preview.nvim",, { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
--"iamcco/markdown-preview.nvim",, { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||||
--"vim-pandoc/vim-pandoc",
|
--"vim-pandoc/vim-pandoc",
|
||||||
--"weirongxu/plantuml-previewer.vim", |
|
--"weirongxu/plantuml-previewer.vim", |
|
||||||
@@ -34,17 +35,10 @@ return {{
|
|||||||
|
|
||||||
-- Other plugins (external tools, etc) {{{
|
-- Other plugins (external tools, etc) {{{
|
||||||
--"JMcKiern/vim-shoot",
|
--"JMcKiern/vim-shoot",
|
||||||
--"MortenStabenau/matlab-vim",
|
|
||||||
--"junegunn/goyo.vim",
|
--"junegunn/goyo.vim",
|
||||||
"protex/better-digraphs.nvim",
|
"protex/better-digraphs.nvim",
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- Appearance {{{
|
-- Appearance {{{
|
||||||
--"jaredgorski/spacecamp",
|
|
||||||
--"lifepillar/vim-gruvbox8",
|
|
||||||
--"marko-cerovac/material.nvim",
|
|
||||||
--"srcery-colors/srcery-vim",
|
|
||||||
--"tanvirtin/monokai.nvim",
|
|
||||||
{
|
{
|
||||||
'anuvyklack/pretty-fold.nvim',
|
'anuvyklack/pretty-fold.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
@@ -66,43 +60,6 @@ return {{
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
"stevearc/dressing.nvim",
|
|
||||||
--"wuelnerdotexe/vim-enfocado",
|
|
||||||
{
|
|
||||||
"fenetikm/falcon",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd([[ colorscheme falcon]])
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"casr/vim-colors-reference",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd([[ colorscheme reference]])
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"blazkowolf/gruber-darker.nvim",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
vim.cmd([[ colorscheme gruber-darker]])
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rebelot/kanagawa.nvim",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd([[ colorscheme kanagawa]])
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tommcdo/vim-lion",
|
|
||||||
keys = {
|
|
||||||
{ "gl", desc = "align to specific character to the left" },
|
|
||||||
{ "gL", desc = "align to specific character to the right" }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- Testing phase {{{
|
-- Testing phase {{{
|
||||||
@@ -113,23 +70,20 @@ return {{
|
|||||||
--require('lsp_lines').setup()
|
--require('lsp_lines').setup()
|
||||||
|
|
||||||
--"mfussenegger/nvim-dap",
|
--"mfussenegger/nvim-dap",
|
||||||
--"narutoxy/silicon.lua",
|
|
||||||
--"nguyenvukhang/nvim-toggler",
|
--"nguyenvukhang/nvim-toggler",
|
||||||
--"rgroli/other.nvim", " Currently doesn't support C/C++
|
--"rgroli/other.nvim", " Currently doesn't support C/C++
|
||||||
--"smolovk/projector.nvim",
|
--"smolovk/projector.nvim",
|
||||||
"Pocco81/true-zen.nvim",
|
"Pocco81/true-zen.nvim",
|
||||||
-- {'krivahtoo/silicon.nvim', build = './install.sh',
|
|
||||||
-- config = function()
|
|
||||||
-- require('silicon').setup({
|
|
||||||
-- font = 'DaddyTimeMono Nerd Font=16',
|
|
||||||
-- theme = 'Monokai Extended',
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
-- },
|
|
||||||
"nullchilly/fsread.nvim",
|
"nullchilly/fsread.nvim",
|
||||||
"ziontee113/icon-picker.nvim",
|
"ziontee113/icon-picker.nvim",
|
||||||
|
{
|
||||||
"cbochs/grapple.nvim",
|
"cbochs/grapple.nvim",
|
||||||
|
enabled = false
|
||||||
|
},
|
||||||
|
{
|
||||||
"shortcuts/no-neck-pain.nvim",
|
"shortcuts/no-neck-pain.nvim",
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
--'jinzhongjia/PS_manager.nvim',
|
--'jinzhongjia/PS_manager.nvim',
|
||||||
-- }}}
|
-- }}}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ return {
|
|||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
},
|
},
|
||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
|
inline = false,
|
||||||
max_len_align = true,
|
max_len_align = true,
|
||||||
max_len_align_padding = 3,
|
max_len_align_padding = 3,
|
||||||
right_align = true,
|
right_align = true,
|
||||||
@@ -144,6 +145,28 @@ return {
|
|||||||
--on_publish_diagnostics = diagnostic_handler,
|
--on_publish_diagnostics = diagnostic_handler,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
nvim_lsp.matlab_ls.setup({
|
||||||
|
cmd = { "matlab-language-server", "--stdio"},
|
||||||
|
filetypes = { "matlab" },
|
||||||
|
handlers = { [ "workspace/configuration"] = function(_, _, ctx)
|
||||||
|
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
||||||
|
return {client.config.settings.matlab}
|
||||||
|
end
|
||||||
|
},
|
||||||
|
root_dir = nvim_lsp.util.find_git_ancestor,
|
||||||
|
single_file_support = false,
|
||||||
|
settings = {
|
||||||
|
matlab = {
|
||||||
|
indexWorkspace = true,
|
||||||
|
installPath = "/home/kmcr/.local/usr/MATLAB/R2021b",
|
||||||
|
matlabConnectionTiming = "onStart",
|
||||||
|
telemetry = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { "cmake", "rust_analyzer", "bashls", "marksman" }
|
local servers = { "cmake", "rust_analyzer", "bashls", "marksman" }
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ return {
|
|||||||
require('snippy').setup({
|
require('snippy').setup({
|
||||||
mappings = {
|
mappings = {
|
||||||
is = {
|
is = {
|
||||||
['<Tab>'] = 'expand_or_advance',
|
['<cr>'] = 'expand_or_advance',
|
||||||
['<S-Tab>'] = 'previous',
|
['<S-cr>'] = 'previous',
|
||||||
},
|
},
|
||||||
nx = {
|
nx = {
|
||||||
['<leader>x'] = 'cut_text',
|
['<leader>x'] = 'cut_text',
|
||||||
|
|||||||
Reference in New Issue
Block a user