Added sql. Changed mode colors
This commit is contained in:
parent
dc67e0a5dd
commit
fbc24dd8fd
2
init.lua
2
init.lua
|
@ -17,7 +17,7 @@ vim.opt.smartindent = true
|
|||
|
||||
vim.opt.wrap = false
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = { "c", "cpp", "lua", "zig", "go" },
|
||||
ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" },
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
|
|
|
@ -32,15 +32,15 @@ local function update_mode_colors()
|
|||
if current_mode == "n" then
|
||||
mode_color = "%#StatuslineAccent#"
|
||||
elseif current_mode == "i" or current_mode == "ic" then
|
||||
mode_color = "%#Search#"
|
||||
mode_color = "%#DiffAdd#"
|
||||
elseif current_mode == "v" or current_mode == "V" or current_mode == "" then
|
||||
mode_color = "%#DiffText#"
|
||||
elseif current_mode == "R" then
|
||||
mode_color = "%#Visual#"
|
||||
mode_color = "%#DiffDelete#"
|
||||
elseif current_mode == "c" then
|
||||
mode_color = "%#Cursor#"
|
||||
mode_color = "%#DiffChange#"
|
||||
elseif current_mode == "t" then
|
||||
mode_color = "%#FloatShadow#"
|
||||
mode_color = "%#DiffDelete#"
|
||||
end
|
||||
return mode_color
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue