diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-06-03 19:46:30 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-06-03 19:46:30 +0100 |
| commit | 4286c610562bb4dd9d288b47d60bdaf28a70438d (patch) | |
| tree | fa9d1bdb0e3e1a2907ddc7c684be7803367c2a65 /lua/user | |
| parent | b6022fe7948825d5452bebc780cb4f919eb9cf12 (diff) | |
Minor fixes
Diffstat (limited to 'lua/user')
| -rw-r--r-- | lua/user/alpha.lua | 10 | ||||
| -rw-r--r-- | lua/user/keymaps.lua | 5 | ||||
| -rw-r--r-- | lua/user/lua.lua | 4 | ||||
| -rw-r--r-- | lua/user/plugins.lua | 26 |
4 files changed, 20 insertions, 25 deletions
diff --git a/lua/user/alpha.lua b/lua/user/alpha.lua index 249a166..5530e52 100644 --- a/lua/user/alpha.lua +++ b/lua/user/alpha.lua @@ -22,18 +22,18 @@ dashboard.section.buttons.val = { dashboard.button("q", " Quit Neovim", ":qa<CR>"), } -local function footer() +-- local function footer() -- NOTE: requires the fortune-mod package to work -- local handle = io.popen("fortune") -- local fortune = handle:read("*a") -- handle:close() -- return fortune - return "chrisatmachine.com" -end +-- return "chrisatmachine.com" +-- end -dashboard.section.footer.val = footer() +-- dashboard.section.footer.val = footer() -dashboard.section.footer.opts.hl = "Type" +-- dashboard.section.footer.opts.hl = "Type" dashboard.section.header.opts.hl = "Include" dashboard.section.buttons.opts.hl = "Keyword" diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 49087c7..027d526 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -28,8 +28,8 @@ keymap("n", "<C-l>", "<C-w>l", opts) -- Resize with arrows keymap("n", "<C-Up>", ":resize +2<CR>", opts) keymap("n", "<C-Down>", ":resize -2<CR>", opts) -keymap("n", "<C-Left>", ":vertical resize -2<CR>", opts) -keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts) +keymap("n", "<C-Left>", ":vertical resize +2<CR>", opts) +keymap("n", "<C-Right>", ":vertical resize -2<CR>", opts) -- Navigate buffers keymap("n", "<S-l>", ":bnext<CR>", opts) @@ -65,6 +65,7 @@ keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts) -- Nvimtree keymap("n", "<leader>e", ":NvimTreeToggle<cr>", opts) +keymap("n", "<leader>v", ":edit $MYVIMRC<cr>", opts) keymap("n", "<leader>f", ":Format<cr>", opts) -- keymap("n", "<leader>f", "<cmd>Telescope find_files<cr>", opts) keymap("n", "<leader>f", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>", opts) diff --git a/lua/user/lua.lua b/lua/user/lua.lua index c97c178..a37b3e7 100644 --- a/lua/user/lua.lua +++ b/lua/user/lua.lua @@ -12,8 +12,6 @@ local function dir_separator() -- Look at package.config for directory separator string (it's the first line) if package.config then return string.match(package.config, '^[^\n]') - elseif vim.fn.has('win32') == 1 then - return '\\' else return '/' end @@ -76,4 +74,4 @@ end -- Set options to open require with gf vim.opt_local.include = [=[\v<((do|load)file|require)\s*\(?['"]\zs[^'"]+\ze['"]]=] -vim.opt_local.includeexpr = "v:lua.find_required_path(v:fname)"
\ No newline at end of file +vim.opt_local.includeexpr = "v:lua.find_required_path(v:fname)" diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 7f2cb92..6008cd7 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -44,22 +44,18 @@ return packer.startup(function(use) use "wbthomason/packer.nvim" -- Have packer manage itself use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins - use "windwp/nvim-autopairs" -- Autopairs, integrates with both cmp and treesitter - use "numToStr/Comment.nvim" -- Easily comment stuff - use "akinsho/bufferline.nvim" - use "moll/vim-bbye" - use "nvim-lualine/lualine.nvim" use "akinsho/toggleterm.nvim" - use "ahmedkhalf/project.nvim" - use "lewis6991/impatient.nvim" - use "lukas-reineke/indent-blankline.nvim" - use 'goolord/alpha-nvim' + use "akinsho/bufferline.nvim" use "antoinemadec/FixCursorHold.nvim" -- This is needed to fix lsp doc highlight + use "folke/which-key.nvim" use 'kyazdani42/nvim-web-devicons' use 'kyazdani42/nvim-tree.lua' - use "goolord/alpha-nvim" - use "antoinemadec/FixCursorHold.nvim" -- This is needed to fix lsp doc highlight - use "folke/which-key.nvim" + use "lewis6991/impatient.nvim" + use "lukas-reineke/indent-blankline.nvim" + use "moll/vim-bbye" + use "numToStr/Comment.nvim" -- Easily comment stuff + use "nvim-lualine/lualine.nvim" + use "windwp/nvim-autopairs" -- Autopairs, integrates with both cmp and treesitter -- Colorschemes use "lunarvim/colorschemes" -- A bunch of colorschemes you can try out @@ -72,19 +68,19 @@ return packer.startup(function(use) use "hrsh7th/cmp-buffer" -- buffer completions use "hrsh7th/cmp-path" -- path completions use "hrsh7th/cmp-cmdline" -- cmdline completions - use "saadparwaiz1/cmp_luasnip" -- snippet completions use "hrsh7th/cmp-nvim-lsp" use "hrsh7th/cmp-nvim-lua" + use "saadparwaiz1/cmp_luasnip" -- snippet completions -- snippets use "L3MON4D3/LuaSnip" --snippet engine use "rafamadriz/friendly-snippets" -- a bunch of snippets to use -- LSP + use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters + use "tamago324/nlsp-settings.nvim" -- language server settings defined in json for use "neovim/nvim-lspconfig" -- enable LSP use "williamboman/nvim-lsp-installer" -- simple to use language server installer - use "tamago324/nlsp-settings.nvim" -- language server settings defined in json for - use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters -- Telescope use "nvim-telescope/telescope.nvim" |
