refactor(nvim): Replace nvim-tree with neotree, move lsp to core

This commit is contained in:
Price Hiller 2022-03-29 00:55:16 -05:00
parent e565d85dac
commit 75ddc82de9
6 changed files with 28 additions and 28 deletions

View File

@ -2,3 +2,4 @@ require("core.disabled").setup()
require("core.options").setup()
require("core.mappings").setup()
require("core.globals").setup()
require("core.lsp").setup()

View File

@ -0,0 +1,15 @@
local M = {}
M.setup = function()
local function lspSymbol(name, icon)
local hl = "DiagnosticSign" .. name
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
end
lspSymbol("Error", "")
lspSymbol("Warn", "")
lspSymbol("Info", "")
lspSymbol("Hint", "")
end
return M

View File

@ -0,0 +1,3 @@
local neotree = require("neo-tree")
neotree.setup({})

View File

@ -1,23 +0,0 @@
local nvimtree = require("nvim-tree")
local g = vim.g
g.nvim_tree_add_trailing = 1
g.nvim_tree_git_hl = 0
g.nvim_tree_highlight_opened_files = 0
g.nvim_tree_indent_markers = 1
g.nvim_tree_root_folder_modifier = table.concat { ":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??" }
g.nvim_tree_show_icons = {
folders = 1,
files = 1,
git = 1,
}
local settings = {
git = {
enable = false,
ignore = false
}
}
nvimtree.setup(settings)

View File

@ -81,4 +81,4 @@ map("n", "<leader>wc", ":Telescope commands<CR>")
map("n", "<leader>ng", ":Neogen<CR>")
-- Nvim Tree Mappings
map("n", "<leader>nt", ":NvimTreeToggle<CR>")
map("n", "<leader>nt", ":Neotree show toggle<cr>")

View File

@ -141,7 +141,7 @@ return packer.startup({
"artart222/telescope_find_directories",
})
-- Telescope
-- Telescope
use({
"nvim-telescope/telescope.nvim",
config = function()
@ -151,10 +151,14 @@ return packer.startup({
-- File Tree
use({
"kyazdani42/nvim-tree.lua",
requires = "kyazdani42/nvim-web-devicons",
"nvim-neo-tree/neo-tree.nvim",
requires = {
"kyazdani42/nvim-web-devicons",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim"
},
config = function()
require("plugins.configs.nvimtree")
require("plugins.configs.neotree")
end,
})
-- LSP, LSP Installer