This commit is contained in:
StuartStephens 2025-10-31 13:57:22 -04:00
parent 02afb38163
commit 77eaa25b15
1 changed files with 22 additions and 22 deletions

View File

@ -687,27 +687,27 @@ require('lazy').setup({
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --
-- Some languages (like typescript) have entire language plugins that can be useful: -- Some languages (like typescript) have entire language plugins that can be useful:
-- https://github.com/pmizio/typescript-tools.nvim -- https://github.com/pmizio/typescript-tools.nvim
-- --
-- But for many setups, the LSP (`ts_ls`) will work just fine -- But for many setups, the LSP (`ts_ls`) will work just fine
ts_ls = {}, ts_ls = {},
-- --
lua_ls = { lua_ls = {
-- cmd = { ... }, -- cmd = { ... },
-- filetypes = { ... }, -- filetypes = { ... },
-- capabilities = {}, -- capabilities = {},
settings = { settings = {
Lua = { Lua = {
completion = { completion = {
callSnippet = 'Replace', callSnippet = 'Replace',
},
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
}, },
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
}, },
}, },
} }
}
-- Ensure the servers and tools above are installed -- Ensure the servers and tools above are installed
-- --
@ -957,13 +957,13 @@ require('lazy').setup({
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
-- - sd' - [S]urround [D]elete [']quotes -- - sd' - [S]urround [D]elete [']quotes
-- - sr)' - [S]urround [R]eplace [)] ['] -- - sr)' - [S]urround [R]eplace [)] [']
require('mini.surround').setup({ mappings = { add = 'ys', delete = 'ds', replace = 'cs' } }) require('mini.surround').setup { mappings = { add = 'ys', delete = 'ds', replace = 'cs' } }
-- Don't yank when deleting or changing -- Don't yank when deleting or changing
local keymap = vim.keymap.set local keymap = vim.keymap.set
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
keymap('n', 'd', '"_d', opts) keymap('n', 'd', '"_d', opts)
keymap('n', 'c', '"_c', opts) keymap('n', 'c', '"_c', opts)
-- Simple and easy statusline. -- Simple and easy statusline.
-- You could remove this setup call if you don't like it, -- You could remove this setup call if you don't like it,