|
|
|
@ -206,10 +206,10 @@ vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower win
|
|
|
|
|
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
|
|
|
|
|
|
|
|
|
-- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes
|
|
|
|
|
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
|
|
|
|
|
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
|
|
|
|
|
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
|
|
|
|
|
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
|
|
|
|
|
vim.keymap.set('n', '<C-S-h>', '<C-w>H', { desc = 'Move window to the left' })
|
|
|
|
|
vim.keymap.set('n', '<C-S-l>', '<C-w>L', { desc = 'Move window to the right' })
|
|
|
|
|
vim.keymap.set('n', '<C-S-j>', '<C-w>J', { desc = 'Move window to the lower' })
|
|
|
|
|
vim.keymap.set('n', '<C-S-k>', '<C-w>K', { desc = 'Move window to the upper' })
|
|
|
|
|
|
|
|
|
|
-- [[ Basic Autocommands ]]
|
|
|
|
|
-- See `:help lua-guide-autocommands`
|
|
|
|
@ -690,31 +690,14 @@ require('lazy').setup({
|
|
|
|
|
-- ts_ls = {},
|
|
|
|
|
--
|
|
|
|
|
-- Vue 3
|
|
|
|
|
volar = {
|
|
|
|
|
--
|
|
|
|
|
vuels = {
|
|
|
|
|
filetypes = { 'vue', 'javascript', 'typescript' },
|
|
|
|
|
init_options = {
|
|
|
|
|
vue = {
|
|
|
|
|
hybridMode = false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
settings = {
|
|
|
|
|
typescript = {
|
|
|
|
|
inlayHints = {
|
|
|
|
|
enumMemberValues = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
},
|
|
|
|
|
functionLikeReturnTypes = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
},
|
|
|
|
|
propertyDeclarationTypes = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
},
|
|
|
|
|
parameterTypes = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
suppressWhenArgumentMatchesName = true,
|
|
|
|
|
},
|
|
|
|
|
variableTypes = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
},
|
|
|
|
|
config = {
|
|
|
|
|
vetur = { -- For Vue 2 compatibility (optional)
|
|
|
|
|
validation = { template = true, script = true, style = true },
|
|
|
|
|
format = { enable = false }, -- Disable if using Prettier
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -732,9 +715,6 @@ require('lazy').setup({
|
|
|
|
|
},
|
|
|
|
|
settings = {
|
|
|
|
|
typescript = {
|
|
|
|
|
tsserver = {
|
|
|
|
|
useSyntaxServer = false,
|
|
|
|
|
},
|
|
|
|
|
inlayHints = {
|
|
|
|
|
includeInlayParameterNameHints = 'all',
|
|
|
|
|
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
|
|
|
|
@ -747,6 +727,7 @@ require('lazy').setup({
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
|
|
|
|
},
|
|
|
|
|
lua_ls = {
|
|
|
|
|
-- cmd = { ... },
|
|
|
|
@ -765,6 +746,10 @@ require('lazy').setup({
|
|
|
|
|
|
|
|
|
|
-- python lsp
|
|
|
|
|
pyright = {},
|
|
|
|
|
-- CSS/SCSS LSP
|
|
|
|
|
cssls = {
|
|
|
|
|
filetypes = { 'css', 'scss', 'sass' },
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-- Ensure the servers and tools above are installed
|
|
|
|
@ -784,10 +769,16 @@ require('lazy').setup({
|
|
|
|
|
vim.list_extend(ensure_installed, {
|
|
|
|
|
'stylua', -- Used to format Lua code
|
|
|
|
|
})
|
|
|
|
|
vim.filetype.add {
|
|
|
|
|
extension = {
|
|
|
|
|
vue = 'vue',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
|
|
|
|
|
|
|
|
|
require('mason-lspconfig').setup {
|
|
|
|
|
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
|
|
|
|
|
ensure_installed = { 'vuels', 'lua_ls' }, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
|
|
|
|
|
automatic_enable = true,
|
|
|
|
|
automatic_installation = false,
|
|
|
|
|
handlers = {
|
|
|
|
|
function(server_name)
|
|
|
|
@ -839,7 +830,7 @@ require('lazy').setup({
|
|
|
|
|
-- python = { "isort", "black" },
|
|
|
|
|
--
|
|
|
|
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
|
|
|
|
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
|
|
|
|
-- javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -866,16 +857,18 @@ require('lazy').setup({
|
|
|
|
|
-- `friendly-snippets` contains a variety of premade snippets.
|
|
|
|
|
-- See the README about individual language/framework/plugin snippets:
|
|
|
|
|
-- https://github.com/rafamadriz/friendly-snippets
|
|
|
|
|
{
|
|
|
|
|
'rafamadriz/friendly-snippets',
|
|
|
|
|
config = function()
|
|
|
|
|
require('luasnip.loaders.from_vscode').lazy_load()
|
|
|
|
|
end,
|
|
|
|
|
},
|
|
|
|
|
-- {
|
|
|
|
|
-- 'rafamadriz/friendly-snippets',
|
|
|
|
|
-- config = function()
|
|
|
|
|
-- require('luasnip.loaders.from_vscode').lazy_load()
|
|
|
|
|
-- end,
|
|
|
|
|
-- },
|
|
|
|
|
},
|
|
|
|
|
opts = {},
|
|
|
|
|
},
|
|
|
|
|
'folke/lazydev.nvim',
|
|
|
|
|
-- custom deps
|
|
|
|
|
'Kaiser-Yang/blink-cmp-avante',
|
|
|
|
|
},
|
|
|
|
|
--- @module 'blink.cmp'
|
|
|
|
|
--- @type blink.cmp.Config
|
|
|
|
@ -911,6 +904,7 @@ require('lazy').setup({
|
|
|
|
|
else
|
|
|
|
|
return cmp.select_and_accept()
|
|
|
|
|
end
|
|
|
|
|
vim.api.nvim_command '<Esc>'
|
|
|
|
|
end,
|
|
|
|
|
'snippet_forward',
|
|
|
|
|
'fallback',
|
|
|
|
@ -936,9 +930,16 @@ require('lazy').setup({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
sources = {
|
|
|
|
|
default = { 'lsp', 'path', 'snippets', 'lazydev' },
|
|
|
|
|
default = { 'lsp', 'path', 'snippets', 'lazydev', 'avante' },
|
|
|
|
|
providers = {
|
|
|
|
|
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
|
|
|
|
avante = {
|
|
|
|
|
module = 'blink-cmp-avante',
|
|
|
|
|
name = 'Avante',
|
|
|
|
|
opts = {
|
|
|
|
|
-- options for blink-cmp-avante
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1011,6 +1012,7 @@ require('lazy').setup({
|
|
|
|
|
-- // custom mini plugins
|
|
|
|
|
--
|
|
|
|
|
require('mini.starter').setup()
|
|
|
|
|
-- require('mini.bufremove').setup()
|
|
|
|
|
|
|
|
|
|
-- Simple and easy statusline.
|
|
|
|
|
-- You could remove this setup call if you don't like it,
|
|
|
|
@ -1037,7 +1039,24 @@ require('lazy').setup({
|
|
|
|
|
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
|
|
|
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
|
|
|
|
opts = {
|
|
|
|
|
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
|
|
|
|
|
ensure_installed = {
|
|
|
|
|
'bash',
|
|
|
|
|
'c',
|
|
|
|
|
'diff',
|
|
|
|
|
'html',
|
|
|
|
|
'lua',
|
|
|
|
|
'luadoc',
|
|
|
|
|
'markdown',
|
|
|
|
|
'markdown_inline',
|
|
|
|
|
'query',
|
|
|
|
|
'vim',
|
|
|
|
|
'vimdoc',
|
|
|
|
|
'html',
|
|
|
|
|
'javascript',
|
|
|
|
|
'typescript',
|
|
|
|
|
'tsx',
|
|
|
|
|
'vue',
|
|
|
|
|
},
|
|
|
|
|
-- Autoinstall languages that are not installed
|
|
|
|
|
auto_install = true,
|
|
|
|
|
highlight = {
|
|
|
|
@ -1048,6 +1067,9 @@ require('lazy').setup({
|
|
|
|
|
additional_vim_regex_highlighting = { 'ruby' },
|
|
|
|
|
},
|
|
|
|
|
indent = { enable = true, disable = { 'ruby' } },
|
|
|
|
|
autotag = {
|
|
|
|
|
enabled = true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
-- There are additional nvim-treesitter modules that you can use to interact
|
|
|
|
|
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
|
|
|
@ -1069,9 +1091,9 @@ require('lazy').setup({
|
|
|
|
|
-- require 'kickstart.plugins.debug',
|
|
|
|
|
require 'kickstart.plugins.indent_line',
|
|
|
|
|
require 'kickstart.plugins.lint',
|
|
|
|
|
require 'kickstart.plugins.autopairs',
|
|
|
|
|
require 'kickstart.plugins.neo-tree',
|
|
|
|
|
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
|
|
|
|
require 'kickstart.plugins.nvim-ts-autotag', -- adds nvim-ts-autotag
|
|
|
|
|
|
|
|
|
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
|
|
|
|
-- This is the easiest way to modularize your config.
|
|
|
|
|