Updated neovim config for v0.12

This commit is contained in:
Jonny Barnes 2026-05-31 20:33:23 +01:00
commit d3b54ea921
No known key found for this signature in database
6 changed files with 33 additions and 26 deletions

View file

@ -0,0 +1,18 @@
local sev = vim.diagnostic.severity
vim.diagnostic.config({
severity_sort = true,
update_in_insert = false,
float = {
border = 'rounded',
source = true,
},
signs = {
text = {
[sev.ERROR] = 'E',
[sev.WARN] = 'W',
[sev.INFO] = 'I',
[sev.HINT] = 'H',
},
},
})

3
neovim/config/init.lua Normal file
View file

@ -0,0 +1,3 @@
require('config.options')
require('config.diagnostics')
require('config.lsp')

1
neovim/config/lsp.lua Normal file
View file

@ -0,0 +1 @@
vim.lsp.enable('phpactor')

View file

@ -0,0 +1,8 @@
vim.o.autocomplete = true
vim.o.pumborder = 'rounded'
vim.o.pummaxwidth = 40
vim.o.completeopt = 'menu,menuone,noinsert,nearest'
vim.o.number = true
vim.o.spelllang = 'en_gb'
vim.o.spell = true
vim.o.termguicolors = true