Fix commenter
This commit is contained in:
@ -10,6 +10,14 @@ require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls", "rust_analyzer" }
|
||||
})
|
||||
|
||||
-- CiderLSP
|
||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
-- Don't show the dumb matching stuff
|
||||
vim.opt.shortmess:append("c")
|
||||
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = { 'en_us' }
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
local configs = require("lspconfig.configs")
|
||||
|
||||
|
30
vim/.vim/lua/config/nerdcommenter.lua
Normal file
30
vim/.vim/lua/config/nerdcommenter.lua
Normal file
@ -0,0 +1,30 @@
|
||||
--------- NERD Commenter
|
||||
-- Create default mappings
|
||||
vim.g.NERDCreateDefaultMappings = 0
|
||||
|
||||
-- Add spaces after comment delimiters by default
|
||||
vim.g.NERDSpaceDelims = 1
|
||||
|
||||
-- Use compact syntax for prettified multi-line comments
|
||||
vim.g.NERDCompactSexyComs = 1
|
||||
|
||||
-- Align line-wise comment delimiters flush left instead of following code indentation
|
||||
vim.g.NERDDefaultAlign = 'left'
|
||||
|
||||
-- Set a language to use its alternate delimiters by default
|
||||
vim.g.NERDAltDelims_java = 1
|
||||
|
||||
-- Allow commenting and inverting empty lines (useful when commenting a region)
|
||||
vim.g.NERDCommentEmptyLines = 1
|
||||
|
||||
-- Enable trimming of trailing whitespace when uncommenting
|
||||
vim.g.NERDTrimTrailingWhitespace = 1
|
||||
|
||||
--Enable NERDCommenterToggle to check all selected lines is commented or not
|
||||
vim.g.NERDToggleCheckAllLines = 1
|
||||
|
||||
nnoremap <leader>c<Space> :call nerdcommenter#Comment(0,"toggle")<CR>
|
||||
vnoremap <leader>c<Space> :call nerdcommenter#Comment(0,"toggle")<CR>
|
||||
|
||||
nnoremap <leader>c$ :call nerdcommenter#Comment(0,"ToEOL")<CR>
|
||||
vnoremap <leader>c$ :call nerdcommenter#Comment(0,"ToEOL")<CR>
|
Reference in New Issue
Block a user