Skip to content

Commit 6f44e8a

Browse files
author
gnoale
committed
wip
1 parent ac78e7d commit 6f44e8a

File tree

1 file changed

+59
-6
lines changed

1 file changed

+59
-6
lines changed

init.lua

Lines changed: 59 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ P.S. You can delete this when you're done too. It's your config now! :)
8787
-- Set <space> as the leader key
8888
-- See `:help mapleader`
8989
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
90-
vim.g.mapleader = ' '
91-
vim.g.maplocalleader = ' '
90+
vim.g.mapleader = '-'
91+
vim.g.maplocalleader = '-'
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
9494
vim.g.have_nerd_font = false
@@ -158,7 +158,10 @@ vim.opt.cursorline = true
158158
vim.opt.scrolloff = 10
159159

160160
-- [[ Basic Keymaps ]]
161-
-- See `:help vim.keymap.set()`
161+
-- See `:help vim.keymap.set()
162+
--
163+
vim.keymap.set('n', '<leader>n', '<cmd>tabnew<space>')
164+
vim.keymap.set('n', '<C-l>', '<cmd>tabnext #<CR>')
162165

163166
-- Clear highlights on search when pressing <Esc> in normal mode
164167
-- See `:help hlsearch`
@@ -605,11 +608,60 @@ require('lazy').setup({
605608
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
606609
-- - settings (table): Override the default settings passed when initializing the server.
607610
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
611+
--
612+
--
613+
-- local on_attach = function(client, bufnr)
614+
-- if client.name == 'ruff_lsp' then
615+
-- -- Disable hover in favor of Pyright
616+
-- client.server_capabilities.hoverProvider = false
617+
-- end
618+
-- end
619+
608620
local servers = {
609-
-- clangd = {},
621+
--clangd = {},
610622
-- gopls = {},
611-
-- pyright = {},
612-
-- rust_analyzer = {},
623+
--prettier = {},
624+
biome = {
625+
settings = {
626+
-- enable = true,
627+
},
628+
},
629+
pyright = {
630+
settings = {
631+
pyright = {
632+
-- Using Ruff's import organizer
633+
-- disableOrganizeImports = true,
634+
},
635+
python = {
636+
analysis = {
637+
-- Ignore all files for analysis to exclusively use Ruff for linting
638+
ignore = { '*' },
639+
},
640+
},
641+
},
642+
},
643+
ruff = {
644+
--on_attach = on_attach,
645+
trace = 'messages',
646+
init_options = {
647+
settings = {
648+
fixAll = true,
649+
logLevel = 'debug',
650+
organizeImports = true,
651+
showSyntaxErrors = true,
652+
lint = {
653+
select = { 'I' },
654+
enable = true,
655+
},
656+
lineLength = 150,
657+
},
658+
},
659+
},
660+
661+
dockerls = {},
662+
terraformls = {},
663+
bashls = {},
664+
613665
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
614666
--
615667
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -618,6 +670,7 @@ require('lazy').setup({
618670
-- But for many setups, the LSP (`tsserver`) will work just fine
619671
-- tsserver = {},
620672
--
673+
--
621674

622675
lua_ls = {
623676
-- cmd = {...},

0 commit comments

Comments
 (0)