Updated neovim config for v0.12
This commit is contained in:
parent
dec884da2f
commit
d3b54ea921
6 changed files with 33 additions and 26 deletions
18
neovim/config/diagnostics.lua
Normal file
18
neovim/config/diagnostics.lua
Normal 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
3
neovim/config/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
require('config.options')
|
||||
require('config.diagnostics')
|
||||
require('config.lsp')
|
||||
1
neovim/config/lsp.lua
Normal file
1
neovim/config/lsp.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
vim.lsp.enable('phpactor')
|
||||
8
neovim/config/options.lua
Normal file
8
neovim/config/options.lua
Normal 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
|
||||
|
|
@ -1,26 +1 @@
|
|||
--[[
|
||||
My NeoVim configuration
|
||||
--]]
|
||||
|
||||
-- Plugins
|
||||
vim.pack.add({"https://github.com/lewis6991/gitsigns.nvim"})
|
||||
|
||||
-- nvim-tree recommends disabling netrw (vim’s file explorer)
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.pack.add({"https://github.com/nvim-tree/nvim-tree.lua"})
|
||||
require("nvim-tree").setup()
|
||||
|
||||
-- Editor options
|
||||
-- show line numbers
|
||||
vim.opt.number = true
|
||||
|
||||
-- set spelling to British English
|
||||
vim.opt.spelllang = 'en_gb'
|
||||
vim.opt.spell = true
|
||||
|
||||
-- 24-bit colour support
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- LSP/PHP setup
|
||||
vim.lsp.enable('phpactor')
|
||||
require('config')
|
||||
|
|
|
|||
Loading…
Reference in a new issue