Mainly alignment

This commit is contained in:
2024-09-10 09:08:31 +02:00
parent d76cef6aa3
commit 62a5f9c8be
7 changed files with 80 additions and 80 deletions

View File

@@ -1,10 +1,11 @@
function ColorMyPencils(color)
color = color or "dichromatic"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
color = color or "dichromatic"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
vim.keymap.set("n", "<leader>c", function() ColorMyPencils() end)
ColorMyPencils()

View File

@@ -3,7 +3,7 @@ local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)
vim.keymap.set("n", "<leader>1", function() ui.nav_file(1) end)
vim.keymap.set("n", "<leader>2", function() ui.nav_file(2) end)
vim.keymap.set("n", "<leader>3", function() ui.nav_file(3) end)
vim.keymap.set("n", "<leader>4", function() ui.nav_file(4) end)

View File

@@ -1,13 +1,13 @@
local lsp = require('lsp-zero').preset({})
lsp.ensure_installed({
'lua_ls', -- Lua
'rust_analyzer', -- rust
'texlab', -- LaTeX
'clangd', -- C/C++
'jedi_language_server', -- Python
'html', -- HTML
'ocamllsp', -- OCaml
'lua_ls', -- Lua
'rust_analyzer', -- rust
'texlab', -- LaTeX
'clangd', -- C/C++
'jedi_language_server', -- Python
'html', -- HTML
'ocamllsp', -- OCaml
})
-- Fix undefined global 'vim'
@@ -33,14 +33,14 @@ lsp.configure('lua_ls', {
})
lsp.on_attach(function(_, bufnr)
lsp.default_keymaps({buffer = bufnr})
lsp.default_keymaps({ buffer = bufnr })
end)
lsp.set_sign_icons({
error = '',
warn = '',
hint = '',
info = '»'
error = '',
warn = '',
hint = '',
info = '»'
})
lsp.setup()

View File

@@ -2,5 +2,5 @@ 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)

View File

@@ -1,21 +1,22 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp", "cmake", "latex", "python" },
require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp", "cmake", "latex", "python", "groovy",
"ocaml" },
-- 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,
},
}