tmux & vim

This commit is contained in:
Barak Michener 2024-01-09 13:09:11 -08:00
parent 8b096b569a
commit aab3bef14a
3 changed files with 42 additions and 20 deletions

View file

@ -36,22 +36,23 @@ nvim_lsp.rust_analyzer.setup({
}
})
nvim_lsp.gopls.setup({
on_attach = function (client, bufnr)
client.server_capabilities.semanticTokensProvider = {
full = true,
legend = {
--tokenTypes = { 'namespace', 'type', 'class', 'enum', 'interface', 'struct', 'typeParameter', 'parameter', 'variable', 'property', 'enumMember', 'event', 'function', 'method', 'macro', 'keyword', 'modifier', 'comment', 'string', 'number', 'regexp', 'operator', 'decorator', },
tokenTypes = { 'namespace' },
tokenModifiers = { 'declaration', 'definition', 'readonly', 'static', 'deprecated', 'abstract', 'async', 'modification', 'documentation', 'defaultLibrary',
},
}
}
end,
settings = {
gopls = {
semanticTokens = true,
},
},
on_attach = function(client, bufnr)
client.server_capabilities.semanticTokensProvider = {
full = true,
legend = {
--tokenTypes = { 'namespace', 'type', 'class', 'enum', 'interface', 'struct', 'typeParameter', 'parameter', 'variable', 'property', 'enumMember', 'event', 'function', 'method', 'macro', 'keyword', 'modifier', 'comment', 'string', 'number', 'regexp', 'operator', 'decorator', },
tokenTypes = { 'namespace' },
tokenModifiers = { 'declaration', 'definition', 'readonly', 'static', 'deprecated', 'abstract', 'async',
'modification', 'documentation', 'defaultLibrary',
},
}
}
end,
settings = {
gopls = {
semanticTokens = true,
},
},
})
nvim_lsp.pyright.setup({ on_attach = on_attach })
@ -475,6 +476,18 @@ require "neogen".setup {}
require('leap').set_default_keymaps()
require("flit").setup {}
require('snippy').setup({
mappings = {
is = {
[',,'] = 'expand_or_advance',
[',.'] = 'previous',
},
nx = {
['<leader>x'] = 'cut_text',
},
},
})
---
--- My own "where" clause generator for Rust