mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
improve nvim-tree icons
This commit is contained in:
parent
51c75e2874
commit
59c5369783
@ -52,6 +52,15 @@ M.packer = function(use)
|
|||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
|
|
||||||
|
-- Only enable on non-prompt buffers
|
||||||
|
-- So don't use in telescope
|
||||||
|
enabled = function()
|
||||||
|
if vim.bo.buftype == "prompt" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
|
||||||
-- Setup snippet completion
|
-- Setup snippet completion
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
@ -65,6 +74,7 @@ M.packer = function(use)
|
|||||||
["<C-p>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }),
|
["<C-p>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "c" }),
|
||||||
["<C-d>"] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }),
|
["<C-d>"] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }),
|
||||||
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }),
|
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }),
|
||||||
|
["<C-e>"] = cmp.mapping(cmp.mapping.abort(), { "i", "c" }),
|
||||||
["<Esc>"] = function(_)
|
["<Esc>"] = function(_)
|
||||||
cmp.mapping({
|
cmp.mapping({
|
||||||
i = cmp.mapping.abort(),
|
i = cmp.mapping.abort(),
|
||||||
|
@ -48,6 +48,9 @@ M.packer = function(use)
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
if on_path("rnix-lsp") then
|
||||||
|
require("lspconfig").rnix.setup({ capabilities = capabilities })
|
||||||
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition)
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition)
|
||||||
vim.keymap.set("n", "gT", vim.lsp.buf.type_definition)
|
vim.keymap.set("n", "gT", vim.lsp.buf.type_definition)
|
||||||
|
@ -80,6 +80,21 @@ M.packer = function(use)
|
|||||||
error = "",
|
error = "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
renderer = {
|
||||||
|
icons = {
|
||||||
|
glyphs = {
|
||||||
|
git = {
|
||||||
|
unstaged = "~",
|
||||||
|
staged = "+",
|
||||||
|
unmerged = "",
|
||||||
|
renamed = "➜",
|
||||||
|
deleted = "",
|
||||||
|
untracked = "?",
|
||||||
|
ignored = "◌",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
height = 30,
|
height = 30,
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
home-manager.users.${config.user} = {
|
home-manager.users.${config.user} = {
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs; [
|
||||||
[
|
|
||||||
nixfmt # Nix file formatter
|
nixfmt # Nix file formatter
|
||||||
|
rnix-lsp # Nix language server
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user