vim stuffzies
This commit is contained in:
parent
ff9e47e96b
commit
6c615e4ed6
3 changed files with 27 additions and 13 deletions
|
|
@ -146,8 +146,8 @@ keyset("v", "<C-b>", 'coc#float#has_scroll() ? coc#float#scroll(0) : "<C-b>"', o
|
||||||
|
|
||||||
-- Use CTRL-S for selections ranges
|
-- Use CTRL-S for selections ranges
|
||||||
-- Requires 'textDocument/selectionRange' support of language server
|
-- Requires 'textDocument/selectionRange' support of language server
|
||||||
keyset("n", "<C-r>", "<Plug>(coc-range-select)", {silent = true})
|
keyset("n", "<C-f>", "<Plug>(coc-range-select)", {silent = true})
|
||||||
keyset("x", "<C-r>", "<Plug>(coc-range-select)", {silent = true})
|
keyset("x", "<C-f>", "<Plug>(coc-range-select)", {silent = true})
|
||||||
|
|
||||||
|
|
||||||
-- Add `:Format` command to format current buffer
|
-- Add `:Format` command to format current buffer
|
||||||
|
|
@ -183,4 +183,4 @@ keyset("n", ",j", ":<C-u>CocNext<cr>", opts)
|
||||||
-- Do default action for previous item
|
-- Do default action for previous item
|
||||||
keyset("n", ",k", ":<C-u>CocPrev<cr>", opts)
|
keyset("n", ",k", ":<C-u>CocPrev<cr>", opts)
|
||||||
-- Resume latest coc list
|
-- Resume latest coc list
|
||||||
keyset("n", ",<space>p", ":<C-u>CocListResume<cr>", opts)
|
keyset("n", ",p", ":<C-u>CocListResume<cr>", opts)
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,8 @@
|
||||||
require("noice").setup({
|
require("noice").setup({
|
||||||
lsp = {
|
views = {
|
||||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
notify = {
|
||||||
override = {
|
merge = true,
|
||||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
}
|
||||||
["vim.lsp.util.stylize_markdown"] = true,
|
|
||||||
["cmp.entry.get_documentation"] = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
messages = {
|
|
||||||
view = "mini"
|
|
||||||
},
|
},
|
||||||
-- you can enable a preset for easier configuration
|
-- you can enable a preset for easier configuration
|
||||||
presets = {
|
presets = {
|
||||||
|
|
|
||||||
20
hm-imports/nvim/config/lua/plugin/treesitter.lua
Normal file
20
hm-imports/nvim/config/lua/plugin/treesitter.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
use_languagetree = true,
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
autotag = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
context_commentstring = {
|
||||||
|
enable = true,
|
||||||
|
enable_autocmd = false,
|
||||||
|
},
|
||||||
|
refactor = {
|
||||||
|
highlight_definitions = { enable = true },
|
||||||
|
highlight_current_scope = { enable = false },
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue