added a few plugins
This commit is contained in:
parent
b79a146d37
commit
ee1fc7d291
4 changed files with 82 additions and 6 deletions
16
init.lua
16
init.lua
|
|
@ -1,16 +1,17 @@
|
|||
vim.g.mapleader = " "
|
||||
vim.g.mapleader = ";"
|
||||
|
||||
require("config.lazy")
|
||||
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"pylsp",
|
||||
-- "pylsp",
|
||||
"clangd",
|
||||
"ols",
|
||||
"ts_ls",
|
||||
"vue_ls",
|
||||
"phpactor",
|
||||
"ty",
|
||||
},
|
||||
})
|
||||
require("mason-nvim-dap").setup({
|
||||
|
|
@ -37,7 +38,7 @@ vim.keymap.set("v", "<Leader>x", ":lua<CR>")
|
|||
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
|
||||
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
|
||||
vim.keymap.set('v', '<C-Space>', '<Nop>', { desc = 'Stop Ctrl+Space from acting as W' })
|
||||
vim.keymap.set('n', '<C-Space>', function()
|
||||
vim.keymap.set('n', '<C-Space>', function()
|
||||
vim.cmd('startinsert')
|
||||
require('blink.cmp').show()
|
||||
end)
|
||||
|
|
@ -64,14 +65,19 @@ lspconfig("phpactor", {
|
|||
cmd = {'phpactor', 'language-server'},
|
||||
filetypes = {'php'},
|
||||
})
|
||||
lspenable("pylsp")
|
||||
lspconfig("ty", {
|
||||
on_attach = function(client, bufnr)
|
||||
client.server_capabilities.semanticTokensProvider = nil
|
||||
end,
|
||||
})
|
||||
--lspenable("pylsp")
|
||||
lspenable("clangd")
|
||||
lspenable("ols")
|
||||
lspenable("ts_ls")
|
||||
lspenable("vue_ls")
|
||||
lspenable("glsl_analyzer")
|
||||
lspenable("phpactor")
|
||||
|
||||
lspenable("ty")
|
||||
|
||||
local dap = require('dap')
|
||||
dap.configurations.php = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue