mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-21 23:05:25 +00:00
nvim: some fixes to configs. Fixed some first time rum errors
This commit is contained in:
parent
acf3c084b8
commit
d6ef8b0fdc
4 changed files with 17 additions and 9 deletions
|
@ -2,10 +2,15 @@
|
|||
-- https://github.com/nvim-treesitter/nvim-treesitter/wiki/Colorschemes
|
||||
local vars = require('user.vars')
|
||||
|
||||
local have_theme = false
|
||||
|
||||
local gb_status_ok, gruvbox = pcall(require, 'gruvbox')
|
||||
if gb_status_ok then
|
||||
gruvbox.setup({})
|
||||
have_theme = true
|
||||
end
|
||||
|
||||
vim.opt.background = "dark"
|
||||
vim.cmd("colorscheme " .. vars.colorscheme)
|
||||
if have_theme then
|
||||
vim.cmd("colorscheme " .. vars.colorscheme)
|
||||
end
|
||||
|
|
|
@ -6,8 +6,8 @@ require("user.lsp")
|
|||
require("user.cmp")
|
||||
require("user.treesitter")
|
||||
require("user.keymaps")
|
||||
require("user.colors")
|
||||
require("user.lualine")
|
||||
require("user.colors")
|
||||
|
||||
-- Make sure plugins are installed
|
||||
--vim.cmd(":PackerClean")
|
||||
|
|
|
@ -5,7 +5,6 @@ local inoremap = Remap.inoremap
|
|||
local xnoremap = Remap.xnoremap
|
||||
local nmap = Remap.nmap
|
||||
|
||||
local telescope = require('telescope.builtin')
|
||||
|
||||
|
||||
-- NvimTree toggle/refresh/findfile
|
||||
|
@ -14,12 +13,15 @@ nnoremap("<leader>r", ":NvimTreeRefresh<CR>")
|
|||
nnoremap("<leader>n", ":NvimTreeFindFile<CR>")
|
||||
|
||||
-- Telescope
|
||||
nnoremap("<C-p>", telescope.find_files)
|
||||
nnoremap("<C-s>", telescope.live_grep)
|
||||
nnoremap("<C-f>", telescope.current_buffer_fuzzy_find)
|
||||
local telescope_status_ok, telescope = pcall(require, "telescope.builtin")
|
||||
if telescope_status_ok then
|
||||
nnoremap("<C-p>", telescope.find_files)
|
||||
nnoremap("<C-s>", telescope.live_grep)
|
||||
nnoremap("<C-f>", telescope.current_buffer_fuzzy_find)
|
||||
end
|
||||
|
||||
-- Copy to system clipboard
|
||||
vnoremap('<leader>y', '"+y')
|
||||
vnoremap('<leader>y', '"+y')
|
||||
nnoremap('<leader>Y', '"+yg_')
|
||||
nnoremap('<leader>y', '"+y')
|
||||
nnoremap('<leader>yy', '"+yy')
|
||||
|
@ -35,5 +37,3 @@ nnoremap('<C-J>', '<C-W><C-J>')
|
|||
nnoremap('<C-K>', '<C-W><C-K>')
|
||||
nnoremap('<C-L>', '<C-W><C-L>')
|
||||
nnoremap('<C-H>', '<C-W><C-H>')
|
||||
|
||||
|
||||
|
|
|
@ -44,3 +44,6 @@ vim.opt.colorcolumn = "80"
|
|||
|
||||
vim.g.mapleader = " "
|
||||
vim.wo.cursorline = true
|
||||
|
||||
-- Enable mouse support
|
||||
vim.opt.mouse = 'a'
|
||||
|
|
Loading…
Reference in a new issue