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

@@ -4,7 +4,8 @@ function ColorMyPencils(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end end
vim.keymap.set("n", "<leader>c", function() ColorMyPencils() end)
ColorMyPencils() 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", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu) 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", "<leader>1", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end) vim.keymap.set("n", "<leader>2", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end) vim.keymap.set("n", "<leader>3", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end) vim.keymap.set("n", "<leader>4", function() ui.nav_file(4) end)

View File

@@ -33,7 +33,7 @@ lsp.configure('lua_ls', {
}) })
lsp.on_attach(function(_, bufnr) lsp.on_attach(function(_, bufnr)
lsp.default_keymaps({buffer = bufnr}) lsp.default_keymaps({ buffer = bufnr })
end) end)
lsp.set_sign_icons({ lsp.set_sign_icons({

View File

@@ -1,6 +1,7 @@
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) -- 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" }, ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp", "cmake", "latex", "python", "groovy",
"ocaml" },
-- Install parsers synchronously (only applied to `ensure_installed`) -- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false, sync_install = false,

View File

@@ -10,11 +10,11 @@ return require('packer').startup(function(use)
use { use {
'nvim-telescope/telescope.nvim', tag = '0.1.6', 'nvim-telescope/telescope.nvim', tag = '0.1.6',
-- or , branch = '0.1.x', -- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} } requires = { { 'nvim-lua/plenary.nvim' } }
} }
-- Color stuff -- Color stuff
use ({ use({
'romainl/vim-dichromatic', 'romainl/vim-dichromatic',
config = function() config = function()
vim.cmd('colorscheme dichromatic') vim.cmd('colorscheme dichromatic')
@@ -22,11 +22,11 @@ return require('packer').startup(function(use)
}) })
-- Miscellaneous packages that fit on a line -- Miscellaneous packages that fit on a line
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use ('nvim-treesitter/playground') use('nvim-treesitter/playground')
use ('theprimeagen/harpoon') use('theprimeagen/harpoon')
use ('mbbill/undotree') use('mbbill/undotree')
use ('tpope/vim-fugitive') use('tpope/vim-fugitive')
-- LSP stuff -- LSP stuff
use { use {
@@ -34,20 +34,19 @@ return require('packer').startup(function(use)
branch = 'v2.x', branch = 'v2.x',
requires = { requires = {
-- LSP Support -- LSP Support
{'neovim/nvim-lspconfig'}, -- Required { 'neovim/nvim-lspconfig' }, -- Required
{ -- Optional { -- Optional
'williamboman/mason.nvim', 'williamboman/mason.nvim',
run = function() run = function()
pcall(vim.cmd, 'MasonUpdate') pcall(vim.cmd, 'MasonUpdate')
end, end,
}, },
{'williamboman/mason-lspconfig.nvim'}, -- Optional { 'williamboman/mason-lspconfig.nvim' }, -- Optional
-- Autocompletion -- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required { 'hrsh7th/nvim-cmp' }, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required { 'hrsh7th/cmp-nvim-lsp' }, -- Required
{'L3MON4D3/LuaSnip'}, -- Required { 'L3MON4D3/LuaSnip' }, -- Required
} }
} }
end) end)

View File

@@ -33,4 +33,3 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = "120" vim.opt.colorcolumn = "120"
vim.g.mapleader = " "