Merge branch 'main' of github.com:jim-fx/.dotfiles

This commit is contained in:
max_richter 2021-10-06 15:08:51 +02:00
commit 71b5f8782c
5 changed files with 23 additions and 11 deletions

View File

@ -22,6 +22,8 @@ paq:setup {
"karb94/neoscroll.nvim", "karb94/neoscroll.nvim",
"alexghergh/nvim-tmux-navigation", "alexghergh/nvim-tmux-navigation",
-- Code Navigation -- Code Navigation
"dense-analysis/ale",
"nathanmsmith/nvim-ale-diagnostic",
"junegunn/fzf", "junegunn/fzf",
"nvim-lua/popup.nvim", "nvim-lua/popup.nvim",
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
@ -38,7 +40,8 @@ paq:setup {
"nvim-lua/lsp-status.nvim", "nvim-lua/lsp-status.nvim",
"hrsh7th/nvim-cmp", -- Autocompletion plugin "hrsh7th/nvim-cmp", -- Autocompletion plugin
"hrsh7th/cmp-nvim-lsp", -- LSP source for nvim-cmp "hrsh7th/cmp-nvim-lsp", -- LSP source for nvim-cmp
"saadparwaiz1/cmp_luasnip", -- Snippets source for nvim-cmp "weilbith/nvim-code-action-menu",
--"saadparwaiz1/cmp_luasnip", -- Snippets source for nvim-cmp
"L3MON4D3/LuaSnip", -- Snippets plugin "L3MON4D3/LuaSnip", -- Snippets plugin
{"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}, {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"},
-- Formatting -- Formatting
@ -75,12 +78,7 @@ if u.has_plugin("cmp") then
--g.NERDTreeDirArrows = true --g.NERDTreeDirArrows = true
-- g.NERDTreeCustomOpenArgs = {file = {where = "t"}} -- g.NERDTreeCustomOpenArgs = {file = {where = "t"}}
g.nvim_tree_gitignore = 1 g.nvim_tree_root_folder_modifier = ":~:."
--g.nvim_tree_auto_open = 1
g.nvim_tree_group_empty = 1
g.nvim_tree_hide_root_folder = 1
--g.nvim_tree_root_folder_modifier = ":~:."
--g.nvim_tree_lsp_diagnostics = 1
g.nvim_tree_special_files = {} g.nvim_tree_special_files = {}
g.nvim_tree_icons = { g.nvim_tree_icons = {
default = "", default = "",
@ -170,7 +168,18 @@ if u.has_plugin("cmp") then
-- Toggleterm / Lazygit setup -- Toggleterm / Lazygit setup
require "lazy-git" require "lazy-git"
require("nvim-tree.view").View.winopts.signcolumn = "no" require("nvim-tree").setup {
auto_open = 1,
gitignore = 1,
lsp_diagnostics = 1,
group_empty = 1,
hide_root_folder = true,
view = {
winopts = {
signcolumn = "no"
}
}
}
-- Autocommands -- Autocommands
--[[ u.create_augroup(]] --[[ u.create_augroup(]]

View File

@ -1,16 +1,19 @@
local map = vim.api.nvim_set_keymap local map = vim.api.nvim_set_keymap
local g = vim.g local g = vim.g
options = {noremap = true} local options = {noremap = true}
remap = {noremap = false} local remap = {noremap = false}
map("n", "<Space>", "<Nop>", remap) map("n", "<Space>", "<Nop>", remap)
map("n", " ", "<Nop>", remap) map("n", " ", "<Nop>", remap)
g.mapleader = " " g.mapleader = " "
map("n", "<C-p>", ":Telescope find_files<CR>", options) map("n", "<C-p>", ":Telescope find_files<CR>", options)
map("n", "<C-f>", ":Telescope grep_string<CR>", options) --map("n", "<C-f>", ":Telescope grep_string<CR>", options)
map("n", "<C-S-f>", ":Telescope live_grep<CR>", options) map("n", "<C-S-f>", ":Telescope live_grep<CR>", options)
map("n", "<Leader>c", ":CodeActionMenu<CR>", remap)
-- Navigate Buffers -- Navigate Buffers
map("n", "<C-h>", "<C-w>h", options) map("n", "<C-h>", "<C-w>h", options)
map("n", "<C-j>", "<C-w>j", options) map("n", "<C-j>", "<C-w>j", options)

Binary file not shown.

Binary file not shown.

Binary file not shown.