mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 21:58:36 +02:00
wip
This commit is contained in:
parent
ac78e7d9e7
commit
6f44e8a4f1
1 changed files with 59 additions and 6 deletions
65
init.lua
65
init.lua
|
@ -87,8 +87,8 @@ P.S. You can delete this when you're done too. It's your config now! :)
|
||||||
-- Set <space> as the leader key
|
-- Set <space> as the leader key
|
||||||
-- See `:help mapleader`
|
-- See `:help mapleader`
|
||||||
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = '-'
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = '-'
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = false
|
||||||
|
@ -158,7 +158,10 @@ vim.opt.cursorline = true
|
||||||
vim.opt.scrolloff = 10
|
vim.opt.scrolloff = 10
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()
|
||||||
|
--
|
||||||
|
vim.keymap.set('n', '<leader>n', '<cmd>tabnew<space>')
|
||||||
|
vim.keymap.set('n', '<C-l>', '<cmd>tabnext #<CR>')
|
||||||
|
|
||||||
-- Clear highlights on search when pressing <Esc> in normal mode
|
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||||
-- See `:help hlsearch`
|
-- See `:help hlsearch`
|
||||||
|
@ -605,11 +608,60 @@ require('lazy').setup({
|
||||||
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
|
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
|
||||||
-- - settings (table): Override the default settings passed when initializing the server.
|
-- - settings (table): Override the default settings passed when initializing the server.
|
||||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- local on_attach = function(client, bufnr)
|
||||||
|
-- if client.name == 'ruff_lsp' then
|
||||||
|
-- -- Disable hover in favor of Pyright
|
||||||
|
-- client.server_capabilities.hoverProvider = false
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
-- clangd = {},
|
--clangd = {},
|
||||||
-- gopls = {},
|
-- gopls = {},
|
||||||
-- pyright = {},
|
--prettier = {},
|
||||||
-- rust_analyzer = {},
|
biome = {
|
||||||
|
settings = {
|
||||||
|
-- enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pyright = {
|
||||||
|
settings = {
|
||||||
|
pyright = {
|
||||||
|
-- Using Ruff's import organizer
|
||||||
|
-- disableOrganizeImports = true,
|
||||||
|
},
|
||||||
|
python = {
|
||||||
|
analysis = {
|
||||||
|
-- Ignore all files for analysis to exclusively use Ruff for linting
|
||||||
|
ignore = { '*' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
ruff = {
|
||||||
|
--on_attach = on_attach,
|
||||||
|
trace = 'messages',
|
||||||
|
init_options = {
|
||||||
|
settings = {
|
||||||
|
fixAll = true,
|
||||||
|
logLevel = 'debug',
|
||||||
|
organizeImports = true,
|
||||||
|
showSyntaxErrors = true,
|
||||||
|
lint = {
|
||||||
|
select = { 'I' },
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
lineLength = 150,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
dockerls = {},
|
||||||
|
terraformls = {},
|
||||||
|
bashls = {},
|
||||||
|
|
||||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||||
--
|
--
|
||||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||||
|
@ -618,6 +670,7 @@ require('lazy').setup({
|
||||||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||||
-- tsserver = {},
|
-- tsserver = {},
|
||||||
--
|
--
|
||||||
|
--
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
-- cmd = {...},
|
-- cmd = {...},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue