From 904432140577ef04f5dd9fbb71fb07ce99bb078f Mon Sep 17 00:00:00 2001 From: pcastr0 Date: Mon, 10 Feb 2025 15:35:06 +0800 Subject: [PATCH] basic configs --- init.lua | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index b9b7028e..972628df 100644 --- a/init.lua +++ b/init.lua @@ -190,10 +190,10 @@ vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Use CTRL+ to switch between windows -- -- See `:help wincmd` for a list of all window commands -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +vim.keymap.set('n', 'H', '', { desc = 'Move focus to the left window' }) +vim.keymap.set('n', 'L', '', { desc = 'Move focus to the right window' }) +vim.keymap.set('n', 'J', '', { desc = 'Move focus to the lower window' }) +vim.keymap.set('n', 'K', '', { desc = 'Move focus to the upper window' }) -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -233,6 +233,7 @@ vim.opt.rtp:prepend(lazypath) -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ + { 'bluz71/vim-moonfly-colors', name = 'moonfly', lazy = false, priority = 1000 }, { @@ -568,6 +569,8 @@ require('lazy').setup({ -- For example, in C this would take you to the header. map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') + map('K', vim.lsp.buf.hover, 'Hover Documentation') + -- The following two autocommands are used to highlight references of the -- word under your cursor when your cursor rests there for a little while. -- See `:help CursorHold` for information about when this is executed @@ -647,8 +650,7 @@ require('lazy').setup({ -- https://github.com/pmizio/typescript-tools.nvim -- -- But for many setups, the LSP (`ts_ls`) will work just fine - -- ts_ls = {}, - -- + ts_ls = {}, lua_ls = { -- cmd = { ... }, @@ -866,7 +868,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'neon-netrunner-night' + vim.cmd.colorscheme 'neon-cyberpunk-night' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' end, @@ -947,12 +949,12 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', + require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config.