Update some nvim settings.

main
felixm 2023-09-06 19:47:46 -04:00
parent dfb75e565f
commit 0d31d01694
4 changed files with 17 additions and 13 deletions

View File

@ -2,6 +2,7 @@ require('config_lualine')
require('config_mappings')
require('config_telescope')
require('config_treesitter')
require('config_lspconfig')
require('plugin_gpt')
require('plugin_votion')
require('plugins')
@ -22,9 +23,8 @@ vim.opt.titlestring="nvim %f"
vim.cmd.colorscheme "catppuccin-frappe"
vim.api.nvim_set_keymap('i', 'jk', '<Esc>', {noremap = true})
local lspconfig = require('lspconfig')
lspconfig.pyright.setup{}
lspconfig.marksman.setup{}
lspconfig.rust_analyzer.setup{}
vim.api.nvim_set_keymap('n', '<C-c>', '"+yy', {noremap = true, silent = true})
vim.api.nvim_set_keymap('v', '<C-c>', '"+y', {noremap = true, silent = true})
vim.api.nvim_set_keymap('i', '<C-v>', '<Esc>"+pa', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<C-S-v>', '"+p', {noremap = true, silent = true})

View File

@ -0,0 +1,4 @@
local lspconfig = require('lspconfig')
lspconfig.pyright.setup{}
lspconfig.marksman.setup{}
lspconfig.rust_analyzer.setup{}

View File

@ -11,14 +11,14 @@ wk.register({
h = { "<cmd>Telescope help_tags<cr>", "Help Tags" },
s = { "<cmd>Telescope colorscheme<cr>", "Colorscheme" },
c = { "<cmd>Telescope commands<cr>", "Commands" },
g = { "<cmd>Telescope find_files search_dirs={'~/owc/gpt'}<CR>", "GPT" },
g = { "<cmd>Telescope find_files search_dirs={'~/syn/gpt'}<CR>", "GPT" },
},
}, { prefix = "<leader>" })
wk.register({
b = {
name = "buffer",
q = { "<cmd>enew | bd #<CR>", "Quit" },
q = { "<cmd>bprevious | bd #<CR>", "Quit" },
n = { "<cmd>bnext<cr>", "Next" },
p = { "<cmd>bprevious<cr>", "Prev" },
a = { "<cmd>unhide<cr>", "Show All" },

View File

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/felixm/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/felixm/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
local package_path_str = "/home/felixm/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?/init.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?.lua;/home/felixm/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/felixm/.cache/nvim/packer_hererocks/2.1.1692616192/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
@ -134,14 +134,14 @@ _G.packer_plugins = {
}
time([[Defining packer_plugins]], false)
-- Config for: oil.nvim
time([[Config for oil.nvim]], true)
try_loadstring("\27LJ\2\n1\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\boil\frequire\0", "config", "oil.nvim")
time([[Config for oil.nvim]], false)
-- Config for: which-key.nvim
time([[Config for which-key.nvim]], true)
try_loadstring("\27LJ\2\nD\0\0\2\0\4\0\t6\0\0\0009\0\1\0+\1\2\0=\1\2\0006\0\0\0009\0\1\0)\1,\1=\1\3\0K\0\1\0\15timeoutlen\ftimeout\6o\bvim\0", "config", "which-key.nvim")
time([[Config for which-key.nvim]], false)
-- Config for: oil.nvim
time([[Config for oil.nvim]], true)
try_loadstring("\27LJ\2\n1\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\boil\frequire\0", "config", "oil.nvim")
time([[Config for oil.nvim]], false)
_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then