update nvim plugin configs
This commit is contained in:
@@ -19,7 +19,7 @@ return {
|
||||
load_on_setup = true,
|
||||
previewer = false,
|
||||
mappings = {
|
||||
delete_session = { { 'n', 'i' }, '<C-D>' },
|
||||
delete_session = { { 'n', 'i' }, '<C-X>' },
|
||||
alternate_session = { { 'n', 'i' }, '<C-S>' },
|
||||
copy_session = { { 'n', 'i' }, '<C-Y>' },
|
||||
},
|
||||
@@ -28,8 +28,8 @@ return {
|
||||
close_unsupported_windows = true,
|
||||
bypass_save_filetypes = { 'alpha', 'dashboard' }, -- don't save dashboard/greeter to a session
|
||||
-- Folders listed here will not have sessions created within.
|
||||
suppress_dirs = { os.getenv('HOME'), '~/Downloads', '~/Desktop', '/' },
|
||||
suppress_dirs = { '~/Downloads', '~/Desktop', '/' },
|
||||
pre_save_cmds = {},
|
||||
post_restore_cmds = {},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
version = '*',
|
||||
-- version = '*',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
options = {
|
||||
|
||||
@@ -12,6 +12,7 @@ return {
|
||||
'javascript',
|
||||
'html',
|
||||
'css',
|
||||
'scss',
|
||||
'python',
|
||||
'json',
|
||||
'lua',
|
||||
@@ -44,4 +45,4 @@ return {
|
||||
local ccc = require('ccc')
|
||||
ccc.setup(opts)
|
||||
end,
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,10 @@ return {
|
||||
disable_legacy_commands = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
'mzlogin/vim-markdown-toc',
|
||||
ft = 'markdown',
|
||||
},
|
||||
{
|
||||
'epwalsh/obsidian.nvim',
|
||||
enabled = false,
|
||||
@@ -59,12 +63,12 @@ return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
ft = 'markdown',
|
||||
ft = { 'markdown', 'telekasten' },
|
||||
},
|
||||
{
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
enabled = false,
|
||||
ft = 'markdown',
|
||||
ft = { 'markdown', 'telekasten' },
|
||||
},
|
||||
{
|
||||
'nvim-telescope/telescope-frecency.nvim',
|
||||
@@ -96,16 +100,6 @@ return {
|
||||
require('telescope').load_extension('frecency')
|
||||
end,
|
||||
},
|
||||
{
|
||||
-- couldn't get this working..
|
||||
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||
enabled = false,
|
||||
dependencies = { 'numToStr/Comment.nvim' },
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
enable_autocmd = false,
|
||||
},
|
||||
},
|
||||
{
|
||||
'mbbill/undotree',
|
||||
enabled = true,
|
||||
|
||||
@@ -5,18 +5,14 @@ return {
|
||||
{
|
||||
'purarue/gitsigns-yadm.nvim',
|
||||
opts = {
|
||||
shell_timeout_ms = 2000,
|
||||
shell_timeout_ms = 1000,
|
||||
},
|
||||
},
|
||||
},
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
event = { 'BufEnter' },
|
||||
opts = {
|
||||
_on_attach_pre = function(_, callback)
|
||||
if vim.fn.executable('yadm') == 1 then
|
||||
require('gitsigns-yadm').yadm_signs(callback)
|
||||
else
|
||||
callback()
|
||||
end
|
||||
_on_attach_pre = function(bufnr, callback)
|
||||
require("gitsigns-yadm").yadm_signs(callback, { bufnr = bufnr })
|
||||
end,
|
||||
signs = {
|
||||
add = { text = '+' },
|
||||
|
||||
@@ -1,72 +1,132 @@
|
||||
return {
|
||||
'williamboman/mason.nvim',
|
||||
dependencies = {
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
},
|
||||
cmd = 'Mason',
|
||||
build = ':MasonUpdate',
|
||||
{
|
||||
'mason-org/mason.nvim',
|
||||
-- 'williamboman/mason.nvim',
|
||||
dependencies = {
|
||||
'neovim/nvim-lspconfig',
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
},
|
||||
cmd = 'Mason',
|
||||
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||||
build = ':MasonUpdate',
|
||||
|
||||
config = function()
|
||||
local mason = require('mason')
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
local mason_tool_installer = require('mason-tool-installer')
|
||||
config = function()
|
||||
local mason = require('mason')
|
||||
local mason_tool_installer = require('mason-tool-installer')
|
||||
|
||||
mason.setup({
|
||||
ui = {
|
||||
-- style = 'minimal',
|
||||
border = 'rounded',
|
||||
width = 0.7,
|
||||
height = 0.8,
|
||||
icons = {
|
||||
package_installed = '✓',
|
||||
package_pending = '➜',
|
||||
package_uninstalled = '✗',
|
||||
mason.setup({
|
||||
ui = {
|
||||
-- style = 'minimal',
|
||||
border = 'rounded',
|
||||
width = 0.7,
|
||||
height = 0.8,
|
||||
icons = {
|
||||
package_installed = '✓',
|
||||
package_pending = '➜',
|
||||
package_uninstalled = '✗',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
'ansiblels',
|
||||
'bashls',
|
||||
'css_variables',
|
||||
'cssls',
|
||||
'cssmodules_ls',
|
||||
'docker_compose_language_service',
|
||||
'dockerls',
|
||||
'emmet_ls',
|
||||
'eslint',
|
||||
'html',
|
||||
'jinja_lsp',
|
||||
'jsonls',
|
||||
'lua_ls',
|
||||
-- 'markdown_oxide',
|
||||
-- 'marksman',
|
||||
'pylsp',
|
||||
'vimls',
|
||||
'yamlls',
|
||||
},
|
||||
})
|
||||
mason_tool_installer.setup({
|
||||
automatic_installation = true,
|
||||
ensure_installed = {
|
||||
'ansible-lint',
|
||||
'black',
|
||||
'eslint_d',
|
||||
'gitlint',
|
||||
'htmlhint',
|
||||
'isort',
|
||||
'jsonlint',
|
||||
'markdownlint',
|
||||
'prettier',
|
||||
'pylint',
|
||||
'shellcheck',
|
||||
'shellharden',
|
||||
'stylua',
|
||||
'trivy',
|
||||
'yamllint',
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
'mason-org/mason-lspconfig.nvim',
|
||||
dependencies = {
|
||||
{ 'mason-org/mason.nvim', opts = {} },
|
||||
'neovim/nvim-lspconfig',
|
||||
},
|
||||
lazy = true,
|
||||
opts = {},
|
||||
|
||||
mason_tool_installer.setup({
|
||||
ensure_installed = {
|
||||
'ansible-lint',
|
||||
'black',
|
||||
'eslint_d',
|
||||
'gitlint',
|
||||
'htmlhint',
|
||||
'isort',
|
||||
'jinja_lsp',
|
||||
'jsonlint',
|
||||
'markdownlint',
|
||||
'prettier',
|
||||
'pylint',
|
||||
'shellcheck',
|
||||
'shellharden',
|
||||
'stylua',
|
||||
'trivy',
|
||||
'yamllint',
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
config = function()
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
local lspconfig = require('lspconfig')
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
mason_lspconfig.setup({
|
||||
automatic_installation = true,
|
||||
automatic_enable = true,
|
||||
ensure_installed = {
|
||||
'ansiblels',
|
||||
'bashls',
|
||||
'css_variables',
|
||||
'cssls',
|
||||
'cssmodules_ls',
|
||||
'docker_compose_language_service',
|
||||
'dockerls',
|
||||
'emmet_ls',
|
||||
'eslint',
|
||||
'html',
|
||||
'jsonls',
|
||||
'lua_ls',
|
||||
'markdown_oxide',
|
||||
'marksman',
|
||||
'pylsp',
|
||||
'vimls',
|
||||
'yamlls',
|
||||
},
|
||||
})
|
||||
|
||||
--[[ mason_lspconfig.setup_handlers({
|
||||
-- default handler for installed servers
|
||||
function(server_name)
|
||||
lspconfig[server_name].setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end,
|
||||
['emmet_ls'] = function()
|
||||
-- configure emmet language server
|
||||
lspconfig['emmet_ls'].setup({
|
||||
capabilities = capabilities,
|
||||
filetypes = { 'html', 'typescriptreact', 'javascriptreact', 'css', 'sass', 'scss', 'less', 'svelte' },
|
||||
})
|
||||
end,
|
||||
['bashls'] = function()
|
||||
lspconfig['bashls'].setup({
|
||||
capabilities = capabilities,
|
||||
filetypes = { 'sh', 'bash', 'zsh' },
|
||||
})
|
||||
end,
|
||||
['lua_ls'] = function()
|
||||
-- configure lua server (with special settings)
|
||||
lspconfig['lua_ls'].setup({
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
Lua = {
|
||||
-- make the language server recognize "vim" global
|
||||
diagnostics = {
|
||||
globals = { 'vim' },
|
||||
},
|
||||
completion = {
|
||||
callSnippet = 'Replace',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}) ]]
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
return {
|
||||
'SmiteshP/nvim-navic',
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
'neovim/nvim-lspconfig',
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@ return {
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||
'folke/todo-comments.nvim',
|
||||
'pschmitt/telescope-yadm.nvim',
|
||||
{ 'nvim-telescope/telescope-media-files.nvim', dependencies = 'nvim-lua/popup.nvim' },
|
||||
{ 'cdanesi/telescope-media-files.nvim', dependencies = 'nvim-lua/popup.nvim' },
|
||||
},
|
||||
event = 'VeryLazy',
|
||||
config = function()
|
||||
@@ -65,4 +65,4 @@ return {
|
||||
telescope.load_extension('git_or_files')
|
||||
telescope.load_extension('git_or_yadm_files')
|
||||
end,
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,12 @@
|
||||
return {
|
||||
'windwp/nvim-ts-autotag',
|
||||
ft = {
|
||||
'astro',
|
||||
'glimmer',
|
||||
'handlebars',
|
||||
'html',
|
||||
'javascript',
|
||||
'jsx',
|
||||
'markdown',
|
||||
'php',
|
||||
'rescript',
|
||||
'svelte',
|
||||
'tsx',
|
||||
'twig',
|
||||
'typescript',
|
||||
'vue',
|
||||
'xml',
|
||||
},
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
opts = {
|
||||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
enable_close_on_slash = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter-context',
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
@@ -8,8 +7,9 @@ return {
|
||||
config = true,
|
||||
opts = {
|
||||
enable = true,
|
||||
mode = 'cursor',
|
||||
line_numbers = true,
|
||||
mode = 'topline',
|
||||
max_lines = 3,
|
||||
-- separator = '',
|
||||
separator = '',
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter-refactor',
|
||||
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||||
dependencies = 'nvim-treesitter',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
||||
opts = {
|
||||
refactor = {
|
||||
highlight_definitions = {
|
||||
@@ -32,4 +32,4 @@ return {
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
end,
|
||||
}
|
||||
}
|
||||
@@ -57,13 +57,13 @@ return {
|
||||
enable = true,
|
||||
swap_next = {
|
||||
['<leader>na'] = '@parameter.inner', -- swap parameters/argument with next
|
||||
['<leader>n:'] = '@property.outer', -- swap object property with next
|
||||
['<leader>nm'] = '@function.outer', -- swap function with next
|
||||
['<leader>n:'] = '@property.outer', -- swap object property with next
|
||||
['<leader>nm'] = '@function.outer', -- swap function with next
|
||||
},
|
||||
swap_previous = {
|
||||
['<leader>pa'] = '@parameter.inner', -- swap parameters/argument with prev
|
||||
['<leader>p:'] = '@property.outer', -- swap object property with prev
|
||||
['<leader>pm'] = '@function.outer', -- swap function with previous
|
||||
['<leader>p:'] = '@property.outer', -- swap object property with prev
|
||||
['<leader>pm'] = '@function.outer', -- swap function with previous
|
||||
},
|
||||
},
|
||||
move = {
|
||||
@@ -121,7 +121,7 @@ return {
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
-- require('nvim-treesitter.configs').setup(opts)
|
||||
|
||||
local ts_repeat_move = require('nvim-treesitter.textobjects.repeatable_move')
|
||||
|
||||
@@ -158,4 +158,4 @@ return {
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, ']b', next_buffer)
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, '[b', prev_buffer)
|
||||
end,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user