Personal changes
This commit is contained in:
parent
465d6f25c2
commit
0b3d65ea10
63
init.lua
63
init.lua
|
|
@ -102,7 +102,7 @@ vim.opt.number = true
|
|||
-- vim.opt.relativenumber = true
|
||||
|
||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||
vim.opt.mouse = 'a'
|
||||
vim.opt.mouse = ''
|
||||
|
||||
-- Don't show the mode, since it's already in status line
|
||||
vim.opt.showmode = false
|
||||
|
|
@ -184,6 +184,15 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
|
|||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
-- Newline on <CR>
|
||||
vim.keymap.set('n', '<CR>', 'o<Esc>', { desc = 'Newline on <CR>' })
|
||||
|
||||
-- Clear hlsearch
|
||||
vim.keymap.set('n', '?q', ':set hlsearch!<CR>', { desc = 'Toggle hlsearch' })
|
||||
|
||||
-- Drop line numbers
|
||||
vim.keymap.set('n', '?l', ':set number!<CR>', { desc = 'Toggle line numbers' })
|
||||
|
||||
-- [[ Basic Autocommands ]]
|
||||
-- See :help lua-guide-autocommands
|
||||
|
||||
|
|
@ -546,27 +555,14 @@ require('lazy').setup {
|
|||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||
-- tsserver = {},
|
||||
--
|
||||
|
||||
lua_ls = {
|
||||
-- cmd = {...},
|
||||
-- filetypes { ...},
|
||||
-- capabilities = {},
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = 'LuaJIT' },
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
-- Tells lua_ls where to find all the Lua files that you have loaded
|
||||
-- for your neovim configuration.
|
||||
library = {
|
||||
'${3rd}/luv/library',
|
||||
unpack(vim.api.nvim_get_runtime_file('', true)),
|
||||
},
|
||||
-- If lua_ls is really slow on your computer, you can try this instead:
|
||||
-- library = { vim.env.VIMRUNTIME },
|
||||
},
|
||||
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
|
||||
-- diagnostics = { disable = { 'missing-fields' } },
|
||||
pylsp = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
flake8 = { enabled = false },
|
||||
mccabe = { enabled = false },
|
||||
pycodestyle = { enabled = false },
|
||||
pyflakes = { enabled = false },
|
||||
ruff = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -795,6 +791,29 @@ require('lazy').setup {
|
|||
end,
|
||||
},
|
||||
|
||||
-- Neotree
|
||||
{
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v3.x',
|
||||
config = function()
|
||||
require('neo-tree').setup {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
hide_dotfiles = true,
|
||||
hide_gitignore = true,
|
||||
},
|
||||
hijack_netrw_behavior = 'open_default',
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||
'MunifTanjim/nui.nvim',
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
},
|
||||
},
|
||||
|
||||
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||
-- put them in the right spots if you want.
|
||||
|
|
|
|||
Loading…
Reference in New Issue