fix yml comment bug
https://stackoverflow.com/questions/51059357/vim-wrong-indent-when-comment-lines-of-yaml-file
This commit is contained in:
parent
5e5fedfa9c
commit
63484f6704
1 changed files with 4 additions and 5 deletions
9
init.lua
9
init.lua
|
@ -1,7 +1,5 @@
|
|||
vim.opt.syntax = 'on'
|
||||
vim.cmd([[
|
||||
filetype plugin indent on
|
||||
]])
|
||||
vim.cmd("filetype plugin indent on")
|
||||
vim.opt.number = true
|
||||
-- set relativenumber
|
||||
vim.opt.relativenumber = false
|
||||
|
@ -21,14 +19,15 @@ vim.opt.sw = 4
|
|||
--set showmatch
|
||||
vim.opt.hlsearch = true
|
||||
--incsearch
|
||||
vim.cmd([[highlight ColorColumn ctermbg=9]])
|
||||
vim.cmd("highlight ColorColumn ctermbg=9")
|
||||
vim.cmd("autocmd FileType yaml,yaml.ansible setlocal indentkeys-=0#")
|
||||
|
||||
-- don't use NeoVim's thin cursor
|
||||
vim.opt.guicursor = ""
|
||||
|
||||
require("colorschemes")
|
||||
|
||||
vim.cmd([[hi MatchParen cterm=bold,underline gui=bold,underline]])
|
||||
vim.cmd("hi MatchParen cterm=bold,underline gui=bold,underline")
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<SPACE>", "<Nop>", { noremap = true })
|
||||
vim.g.mapleader = " "
|
||||
|
|
Loading…
Reference in a new issue