From 3219f7855c2ff1050045031f5aae414b2a442d69 Mon Sep 17 00:00:00 2001 From: geremia Date: Tue, 20 Feb 2024 15:43:48 +0100 Subject: [PATCH] rust and php --- init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6aeb43d5..23d5c42a 100644 --- a/init.lua +++ b/init.lua @@ -418,7 +418,7 @@ vim.keymap.set('n', 'sr', require('telescope.builtin').resume, { desc = vim.defer_fn(function() require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'markdown', 'markdown_inline'}, + ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'markdown', 'markdown_inline', 'php'}, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, @@ -567,6 +567,10 @@ local servers = { filetypes = { 'rust' }, }, + phpactor = { + filetypes = { 'php' }, + }, + lua_ls = { Lua = { workspace = { checkThirdParty = false }, @@ -656,3 +660,7 @@ cmp.setup { -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et + +-- MY KEYMAPS -- +-- exit insert mode with lk +vim.keymap.set("i", "lk", "")