Remove timestamps, remove konsole setup and update neovim packages

This commit is contained in:
Sonny Bakker 2024-05-23 20:49:34 +02:00
parent 0755c7e3d4
commit a5aa039671
15 changed files with 40 additions and 186 deletions

View file

@ -1,7 +1,5 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
--colorscheme
vim.cmd('colorscheme edge')
vim.cmd('colorscheme catppuccin-latte')
--enable this option here as the events are used in this buffer
vim.cmd('syntax on')

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
local gitsigns = require('gitsigns');
gitsigns.setup({

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
local opts = {noremap=true, silent=true}
vim.api.nvim_set_keymap('n', '<C-E>', '<cmd>:NERDTreeToggle<CR>', opts)

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
--use an on_attach function to only map the following keys
--after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
@ -42,6 +40,11 @@ end
local util = require('lspconfig/util')
local python_root_dir = function(fname)
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
util.path.dirname(fname)
end
nvim_lsp.pylsp.setup({
on_attach = on_attach,
capabilities = capabilities,
@ -55,10 +58,16 @@ nvim_lsp.pylsp.setup({
}
}
},
root_dir = function(fname)
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
util.path.dirname(fname)
end
root_dir = python_root_dir
})
local pyright_capabilities = vim.lsp.protocol.make_client_capabilities()
pyright_capabilities.textDocument.publishDiagnostics.tagSupport.valueSet = { 2 }
nvim_lsp.pyright.setup({
on_attach = on_attach,
capabilities = pyright_capabilities,
root_dir = python_root_dir
})
nvim_lsp.html.setup({

View file

@ -1,5 +1,21 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
local lualine = require('lualine');
lualine.setup({})
lualine.setup {
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
lualine_c = {
{
'filename',
path = 1,
}
},
lualine_x = {
'encoding',
'fileformat',
'filetype'
},
lualine_y = {'progress'},
lualine_z = {'location'}
},
}

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
local cmp = require('cmp')
cmp.setup {

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
-- fix different locale settings when ssh'ing
vim.o.encoding = 'utf-8'

View file

@ -1,5 +1,3 @@
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
-- Tree sitter language parsers are installed automatically (through `auto_install`).
-- To update installed parsers use `:TSUpdate {language}`.
-- See https://github.com/nvim-treesitter/nvim-treesitter for more info.