diff options
author | Christian Segundo | 2023-11-05 12:32:36 +0100 |
---|---|---|
committer | Christian Segundo | 2023-11-05 12:32:36 +0100 |
commit | 62742ec3d18a65e86cbdd6a5e1ca8a9e09a4e811 (patch) | |
tree | 1403275670f5542d2248970c2493903bc883f814 /public/nvim/.nvim/lua/plugins | |
parent | c5b2d56ca133474f1803467e046a98bed3274b85 (diff) | |
download | dotfiles-62742ec3d18a65e86cbdd6a5e1ca8a9e09a4e811.tar.gz |
add ledger
Diffstat (limited to 'public/nvim/.nvim/lua/plugins')
-rw-r--r-- | public/nvim/.nvim/lua/plugins/lang/ledger.lua | 25 | ||||
-rw-r--r-- | public/nvim/.nvim/lua/plugins/lsp/cmp.lua | 2 |
2 files changed, 27 insertions, 0 deletions
diff --git a/public/nvim/.nvim/lua/plugins/lang/ledger.lua b/public/nvim/.nvim/lua/plugins/lang/ledger.lua new file mode 100644 index 0000000..bc265e1 --- /dev/null +++ b/public/nvim/.nvim/lua/plugins/lang/ledger.lua @@ -0,0 +1,25 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts) == "table" then + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "ledger" }) + end + end, + }, + { + "ledger/vim-ledger", + ft = { "ldg", "ledger", "journal" }, + }, + -- TODO + --{ + --"hrsh7th/nvim-cmp", + --opts = function(_, opts) + --if type(opts) == "table" then + --opts.sources = opts.sources or {} + --vim.list_extend(opts.sources, { name = "ledger" }) + --end + --end, + --}, +} diff --git a/public/nvim/.nvim/lua/plugins/lsp/cmp.lua b/public/nvim/.nvim/lua/plugins/lsp/cmp.lua index 6099683..004c265 100644 --- a/public/nvim/.nvim/lua/plugins/lsp/cmp.lua +++ b/public/nvim/.nvim/lua/plugins/lsp/cmp.lua @@ -2,6 +2,7 @@ return { "hrsh7th/nvim-cmp", opts = { sources = { + { name = "ledger" }, { name = "luasnip", option = { @@ -91,5 +92,6 @@ return { { "hrsh7th/cmp-path" }, { "onsails/lspkind.nvim" }, { "saadparwaiz1/cmp_luasnip" }, + { "someone-stole-my-name/cmp-ledger" }, }, } |