improvements (cba)

This commit is contained in:
2024-01-02 06:43:27 +01:00
parent bf6f497268
commit fc104536c1
6 changed files with 50 additions and 22 deletions

View File

@@ -1,10 +1,15 @@
function Color(color)
color = color or "catppuccin-mocha"
vim.cmd.colorscheme(color)
color = color or "catppuccin-mocha"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
vim.cmd('hi StatusLine guibg=#00000000')
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.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

View File

@@ -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}

View File

@@ -2,5 +2,6 @@ local builtin = require('telescope.builtin')
vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
vim.keymap.set("n", "<C-p>", builtin.git_files, {})
vim.keymap.set("n", "<leader>ps", function()
builtin.grep_string({ search = vim.fn.input("Grep > ") });
builtin.grep_string({ search = vim.fn.input("Grep > ") });
end)
vim.api.nvim_set_hl(0, "TelescopeSelection", { link = "Visual" })

View File

@@ -1,21 +1,25 @@
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" },
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" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
highlight = {
enable = true,
highlight = {
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
disable = { 'yaml' }
}
}

View File

@@ -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-=<:>'
})

View File

@@ -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