MORE NEOVIM.
This commit is contained in:
parent
d5acf56587
commit
c76c6ac42b
4 changed files with 70 additions and 63 deletions
|
@ -12,7 +12,12 @@ vim.opt.swapfile = false
|
|||
vim.o.number = true
|
||||
vim.o.cursorline = true
|
||||
vim.o.guicursor = 'n-v-c-sm-i-ci-ve:block,r-cr-o:hor20,a:blinkoff700-blinkoff400-blinkoff250-Cursor/lCursor'
|
||||
|
||||
vim.opt.listchars = {
|
||||
tab = '|-',
|
||||
trail = '.',
|
||||
lead = '.',
|
||||
}
|
||||
vim.opt.list = true
|
||||
|
||||
require("indent")
|
||||
require("maps")
|
||||
|
|
|
@ -4,6 +4,7 @@ local package = {}
|
|||
local c = require("color.cons").colors
|
||||
|
||||
package.hls = {
|
||||
-- The highlights to be applied via color.apply method.
|
||||
Normal = {fg = "white", bg = "black"},
|
||||
|
||||
TabLine = {bold = false, fg = "black", bg = "darkgray" },
|
||||
|
@ -49,6 +50,8 @@ package.hls = {
|
|||
VertSplit = {bold=true, fg="gray"},
|
||||
|
||||
Visual = {reverse=true},
|
||||
|
||||
Whitespace = {bold = false, fg="gray"},
|
||||
}
|
||||
|
||||
return package
|
||||
|
|
|
@ -10,7 +10,7 @@ createAutoCmd({
|
|||
"BufNewFile",
|
||||
"BufRead",
|
||||
},{
|
||||
pattern = "*.go,*.c,*.cc,*.C,*.cpp,*.rs",
|
||||
pattern = "*.go,*.c,*.cc,*.C,*.cpp,*.rs,*.mk",
|
||||
callback = function()
|
||||
local buf = vim.bo[vim.api.nvim_get_current_buf()]
|
||||
vim.o.expandtab = false
|
||||
|
@ -23,7 +23,7 @@ createAutoCmd({
|
|||
"BufNewFile",
|
||||
"BufRead",
|
||||
},{
|
||||
pattern = "*.lua,*.js,*.jsx,*.scss,*.css,*.sass,*.html,*.htmlx,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml",
|
||||
pattern = "*.txt,*.lua,*.js,*.jsx,*.scss,*.css,*.sass,*.html,*.htmlx,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml",
|
||||
callback = function()
|
||||
local buf = vim.bo[vim.api.nvim_get_current_buf()]
|
||||
buf.expandtab = true
|
||||
|
|
|
@ -33,17 +33,16 @@ local opts = {silent = true}
|
|||
map('n', '\\tn', ':tabnew\n', opts)
|
||||
|
||||
-- Fold
|
||||
|
||||
map('n', 'zO', "zR", opts)
|
||||
|
||||
-- Insert
|
||||
-- Literal tabs with Shift-Tab
|
||||
map('i', '<S-Tab>', '\t', opts)
|
||||
|
||||
map('n', '<Backspace>', 'hx', opts)
|
||||
|
||||
-- Empty
|
||||
map('n', '<C-l>', '', opts)
|
||||
|
||||
-- Help.
|
||||
map('n', '\\th', ":tab help ", {silent=false})
|
||||
-- vim.api.nvim_del_keymap('n', '<C-l>')
|
||||
-- vim.api.nvim_del_keymap('n', '<C-r>')
|
||||
-- Windows
|
||||
|
|
Loading…
Reference in a new issue