improvements (cba)
This commit is contained in:
@@ -3,8 +3,13 @@ function Color(color)
|
||||
vim.cmd.colorscheme(color)
|
||||
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
vim.cmd('hi StatusLine guibg=#00000000')
|
||||
vim.api.nvim_set_hl(0, "StatusLine", { bg = "none" })
|
||||
-- If Vim thinks StatusLine and StatusLineNC are the same it overrides these settings
|
||||
vim.api.nvim_set_hl(0, "StatusLineNC", { ctermbg = "#ff0000", bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "EndOfBuffer", { fg = "none", bg = "none" })
|
||||
end
|
||||
|
||||
Color()
|
||||
-- #1E1E2E
|
||||
|
||||
@@ -10,6 +10,17 @@ require('mason-lspconfig').setup({
|
||||
}
|
||||
})
|
||||
|
||||
require('lspconfig').yamlls.setup {
|
||||
settings = {
|
||||
yaml = {
|
||||
validate = false,
|
||||
format = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
local cmp = require('cmp')
|
||||
|
||||
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||
|
||||
@@ -4,3 +4,4 @@ vim.keymap.set("n", "<C-p>", builtin.git_files, {})
|
||||
vim.keymap.set("n", "<leader>ps", function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ") });
|
||||
end)
|
||||
vim.api.nvim_set_hl(0, "TelescopeSelection", { link = "Visual" })
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
require 'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "javascript", "typescript", "c", "lua", "vim", "vimdoc", "query" },
|
||||
|
||||
@@ -18,4 +18,8 @@ require'nvim-treesitter.configs'.setup {
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = { 'yaml' }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
require('409.remap')
|
||||
require('409.set')
|
||||
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
pattern = { '*.yaml' },
|
||||
command = 'setlocal ts=2 sts=2 sw=2 expandtab indentkeys-=0# indentkeys-=<:>'
|
||||
})
|
||||
|
||||
@@ -9,6 +9,8 @@ vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.linebreak = true
|
||||
|
||||
vim.opt.wrap = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user