diff --git a/init.lua b/init.lua index 8a2c322c..be68f9af 100644 --- a/init.lua +++ b/init.lua @@ -317,6 +317,9 @@ require('lazy').setup { changedelete = { text = '~' }, }, }, + -- towolf/vim-helm provides basic syntax highlighting and filetype detection + -- ft = 'helm' is important to not start yamlls + { 'towolf/vim-helm', ft = 'helm' }, }, -- NOTE: Plugins can also be configured to run lua code when they are loaded. @@ -637,6 +640,13 @@ require('lazy').setup { }, }, }, + + helm_ls = { + settings = { + ['helm-ls'] = {}, + filetypes = { 'yaml', 'helm' }, + }, + }, } -- Ensure the servers and tools above are installed @@ -884,5 +894,12 @@ require('lazy').setup { { import = 'custom.plugins' }, } +-- Custom Filetypes +vim.filetype.add { + extensions = { + yaml = 'helm-ls', + }, +} + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 42088ae6..aa43f9cd 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -55,4 +55,10 @@ return { -- refer to the configuration section below }, }, + { + 'github/copilot.vim', + }, + { + 'tpope/vim-sleuth', + }, }