pre lunarvim
This commit is contained in:
parent
12cd4924a7
commit
ce28c5f0c9
@ -30,3 +30,12 @@ vim.keymap.set('n', '<C-w>', ':tabclose<CR>')
|
||||
|
||||
-- jump to definition in new tab
|
||||
vim.keymap.set('n', '<C-]>', '<cmd>tab split | lua vim.lsp.buf.definition()<CR>', {})
|
||||
|
||||
-- change split window
|
||||
vim.keymap.set('n', '<C-k>', ':wincmd k<CR>')
|
||||
vim.keymap.set('n', '<C-j>', ':wincmd j<CR>')
|
||||
vim.keymap.set('n', '<C-h>', ':wincmd h<CR>')
|
||||
vim.keymap.set('n', '<C-l>', ':wincmd l<CR>')
|
||||
|
||||
-- move split to tab
|
||||
vim.keymap.set('n', '<C-m>', ':tab split<CR>')
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup({
|
||||
})
|
||||
require("lspconfig").phpactor.setup({
|
||||
--require("lspconfig").phpactor.setup({
|
||||
vim.lsp.config.phpactor.setup({
|
||||
on_attach = on_attach,
|
||||
init_options = {
|
||||
["language_server_phpstan.enabled"] = false,
|
||||
|
||||
@ -50,7 +50,8 @@ return {
|
||||
--# deadcolumn, shows line limit when coming close
|
||||
'Bekaboo/deadcolumn.nvim',
|
||||
--# colorizer, show hex and other colors e.g: #ADADBF
|
||||
'norcalli/nvim-colorizer.lua',
|
||||
--'norcalli/nvim-colorizer.lua', looks unmaintained
|
||||
'NiklasV1/nvim-colorizer.lua',
|
||||
--# SyntaxAttr, display syntax highlighting
|
||||
'vim-scripts/SyntaxAttr.vim',
|
||||
--# rainbow-delimiters, colors braces etc
|
||||
@ -78,27 +79,34 @@ return {
|
||||
--# lsp, the lazy way
|
||||
{
|
||||
"dundalek/lazy-lsp.nvim",
|
||||
commit="0ccc0238be37351d53e64c2f6c7f9e106e2bdb68",
|
||||
dependencies = {
|
||||
"neovim/nvim-lspconfig",
|
||||
{"VonHeikemen/lsp-zero.nvim", branch = "v3.x"},
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/nvim-cmp",
|
||||
},
|
||||
dependencies = { "neovim/nvim-lspconfig" },
|
||||
config = function()
|
||||
local lsp_zero = require("lsp-zero")
|
||||
|
||||
lsp_zero.on_attach(function(client, bufnr)
|
||||
-- see :help lsp-zero-keybindings to learn the available actions
|
||||
lsp_zero.default_keymaps({
|
||||
buffer = bufnr,
|
||||
preserve_mappings = false
|
||||
})
|
||||
end)
|
||||
|
||||
require("lazy-lsp").setup {}
|
||||
end,
|
||||
end
|
||||
},
|
||||
--{
|
||||
-- "dundalek/lazy-lsp.nvim",
|
||||
-- commit="0ccc0238be37351d53e64c2f6c7f9e106e2bdb68",
|
||||
-- dependencies = {
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- {"VonHeikemen/lsp-zero.nvim", branch = "v3.x"},
|
||||
-- "hrsh7th/cmp-nvim-lsp",
|
||||
-- "hrsh7th/nvim-cmp",
|
||||
-- },
|
||||
-- config = function()
|
||||
-- local lsp_zero = require("lsp-zero")
|
||||
|
||||
-- lsp_zero.on_attach(function(client, bufnr)
|
||||
-- -- see :help lsp-zero-keybindings to learn the available actions
|
||||
-- lsp_zero.default_keymaps({
|
||||
-- buffer = bufnr,
|
||||
-- preserve_mappings = false
|
||||
-- })
|
||||
-- end)
|
||||
|
||||
-- require("lazy-lsp").setup {}
|
||||
-- end,
|
||||
--},
|
||||
-- Add scrollbar
|
||||
'petertriho/nvim-scrollbar',
|
||||
}
|
||||
|
||||
BIN
nvim.appimage
BIN
nvim.appimage
Binary file not shown.
BIN
nvim.appimage.v10
Executable file
BIN
nvim.appimage.v10
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user