diff --git a/lua/plugins/k8s-crd.lua b/lua/plugins/k8s-crd.lua new file mode 100644 index 0000000..ea8941d --- /dev/null +++ b/lua/plugins/k8s-crd.lua @@ -0,0 +1,14 @@ +return { + 'anasinnyk/nvim-k8s-crd', + event = { 'BufReadPre', 'BufNewFile' }, + ft = 'yaml', + dependencies = { 'neovim/nvim-lspconfig' }, + setup = function() + require('nvim-k8s-crd').setup { + cache_dir = vim.fs.joinpath(vim.fn.stdpath 'data', 'k8s-crd-cache'), + k8s = { + file_mask = '*.yaml', + }, + } + end, +} diff --git a/lua/plugins/neogit.lua b/lua/plugins/neogit.lua index 43c956c..4da4d9b 100644 --- a/lua/plugins/neogit.lua +++ b/lua/plugins/neogit.lua @@ -10,7 +10,7 @@ return { -- the right pane. You can change this to 'diff1' to show only the current file's diff. view = { default = { - layout = 'diff3_horizomtal', + layout = 'diff2_horizontal', }, }, }, @@ -43,12 +43,6 @@ return { -- Show message with spinning animation when a git command is running. process_spinner = true, -- Used to generate URL's for branch popup action "pull request". - git_services = { - ['github.com'] = 'https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1', - ['bitbucket.org'] = 'https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1', - ['gitlab.com'] = 'https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}', - ['azure.com'] = 'https://dev.azure.com/${owner}/_git/${repository}/pullrequestcreate?sourceRef=${branch_name}&targetRef=${target}', - }, -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf -- sorter instead. By default, this function returns `nil`. -- telescope_sorter = function()