improve nvim-tree icons

This commit is contained in:
Noah Masur 2022-07-13 04:23:38 +00:00
parent 51c75e2874
commit 59c5369783
5 changed files with 33 additions and 4 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
Test

View File

@ -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(),

View File

@ -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)

View File

@ -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,

View File

@ -2,10 +2,10 @@
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
]; ];
}; };