neovim: Exclude surrounding whitespace in treesitter textobjects
This commit is contained in:
parent
cbc831a5ca
commit
af15322d92
1 changed files with 4 additions and 3 deletions
|
|
@ -271,7 +271,7 @@ plugins = {
|
||||||
|
|
||||||
lookahead = true,
|
lookahead = true,
|
||||||
|
|
||||||
include_surrounding_whitespace = true,
|
include_surrounding_whitespace = false,
|
||||||
|
|
||||||
-- TODO: more keymaps
|
-- TODO: more keymaps
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
@ -572,10 +572,11 @@ end
|
||||||
|
|
||||||
for _, server in ipairs(lsp_installer.get_installed_servers()) do
|
for _, server in ipairs(lsp_installer.get_installed_servers()) do
|
||||||
-- rust-analyzer will be configured by rust-tools.
|
-- rust-analyzer will be configured by rust-tools.
|
||||||
if server.name == 'rust_analyzer' then goto continue end
|
if server.name == 'rust_analyzer' then
|
||||||
|
goto continue
|
||||||
|
end
|
||||||
|
|
||||||
-- Go needs special logic to run goimports on save.
|
-- Go needs special logic to run goimports on save.
|
||||||
-- TODO: gopls via null_ls?
|
|
||||||
if server.name == 'gopls' then
|
if server.name == 'gopls' then
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
pattern = '*.go',
|
pattern = '*.go',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue