@@ -84,14 +84,19 @@ I hope you enjoy your Neovim journey,
8484P.S. You can delete this when you're done too. It's your config now! :)
8585--]]
8686
87+ -- NOTE: Particular configuration set by etorres
88+ vim .opt .tabstop = 4
89+ vim .opt .expandtab = true
90+ vim .opt .shiftwidth = 4
91+
8792-- Set <space> as the leader key
8893-- See `:help mapleader`
8994-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
9095vim .g .mapleader = ' '
9196vim .g .maplocalleader = ' '
9297
9398-- Set to true if you have a Nerd Font installed and selected in the terminal
94- vim .g .have_nerd_font = false
99+ vim .g .have_nerd_font = true
95100
96101-- [[ Setting options ]]
97102-- See `:help vim.opt`
@@ -102,7 +107,7 @@ vim.g.have_nerd_font = false
102107vim .opt .number = true
103108-- You can also add relative line numbers, to help with jumping.
104109-- Experiment for yourself to see if you like it!
105- -- vim.opt.relativenumber = true
110+ -- vim.opt.relativenumber = false
106111
107112-- Enable mouse mode, can be useful for resizing splits for example!
108113vim .opt .mouse = ' a'
@@ -382,11 +387,12 @@ require('lazy').setup({
382387 -- You can put your default mappings / updates / etc. in here
383388 -- All the info you're looking for is in `:help telescope.setup()`
384389 --
385- -- defaults = {
386- -- mappings = {
387- -- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
388- -- },
389- -- },
390+ defaults = {
391+ mappings = {
392+ -- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
393+ i = { [' <c-d>' ] = require (' telescope.actions' ).delete_buffer },
394+ },
395+ },
390396 -- pickers = {}
391397 extensions = {
392398 [' ui-select' ] = {
@@ -606,9 +612,20 @@ require('lazy').setup({
606612 -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
607613 local servers = {
608614 -- clangd = {},
609- -- gopls = {},
610- -- pyright = {},
611- -- rust_analyzer = {},
615+ gopls = {},
616+ rust_analyzer = {},
617+ pylsp = {
618+ settings = {
619+ pylsp = {
620+ plugins = {
621+ mccabe = { enabled = false },
622+ pyflakes = { enabled = false },
623+ pycodestyle = { ignore = { ' W391' }, maxLineLength = 120 , enabled = true },
624+ },
625+ },
626+ },
627+ },
628+ bashls = {},
612629 -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
613630 --
614631 -- Some languages (like typescript) have entire language plugins that can be useful:
@@ -647,6 +664,8 @@ require('lazy').setup({
647664 local ensure_installed = vim .tbl_keys (servers or {})
648665 vim .list_extend (ensure_installed , {
649666 ' stylua' , -- Used to format Lua code
667+ ' autopep8' , -- Used to format Python code
668+ ' flake8' , -- Used to format Python code
650669 })
651670 require (' mason-tool-installer' ).setup { ensure_installed = ensure_installed }
652671
@@ -888,7 +907,7 @@ require('lazy').setup({
888907 main = ' nvim-treesitter.configs' , -- Sets main module to use for opts
889908 -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
890909 opts = {
891- ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' },
910+ ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' , ' go ' },
892911 -- Autoinstall languages that are not installed
893912 auto_install = true ,
894913 highlight = {
@@ -921,7 +940,7 @@ require('lazy').setup({
921940 -- require 'kickstart.plugins.indent_line',
922941 -- require 'kickstart.plugins.lint',
923942 -- require 'kickstart.plugins.autopairs',
924- -- require 'kickstart.plugins.neo-tree',
943+ require ' kickstart.plugins.neo-tree' ,
925944 -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
926945
927946 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
0 commit comments