Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issues setting up this plugin #17

Open
maettgs opened this issue Sep 22, 2024 · 8 comments
Open

Having issues setting up this plugin #17

maettgs opened this issue Sep 22, 2024 · 8 comments

Comments

@maettgs
Copy link

maettgs commented Sep 22, 2024

Hello,
I seem to be having issues setting up this plugin. I'm new to VIM, so forgive me.

A few notes:

  • On a mac
  • Compiled VIM with Python3

First issue is, can't seem to set up the leader. The help file in VIM (:help vimf90) shows the command
let g:VimF90Leader = ""`

but readme shows
let fortran_leader = "your chosen key"

Any comments?

The next I suppose is having issues with setting up coc.nvim. I'm using the following code from the readme.md:

let g:coc_start_at_startup = 0
augroup coc
autocmd!
autocmd VimEnter * :silent CocStart
augroup end
let g:coc_user_config = {
\ 'languageserver': {
\ 'fortran': {
\ 'command': '${HOME}/.local/bin/fortls',
\ 'args': ['--lowercase_intrinsics'],
\ 'filetypes': ['fortran'],
\ 'rootPatterns': ['.fortls', '.git/'],
\ }
}

but I get the following error when I try to :source %
Error detected while processing /Users/user/.vimrc:
line 42:
E722: Missing comma in Dictionary:
line 50:
E1128: } without {: }
Press ENTER or type command to continue

Can you assist?

@maettgs
Copy link
Author

maettgs commented Sep 23, 2024

The leader still doesn't work but I was able to change the coc.nvim setup to

let g:coc_start_at_startup = 0
augroup coc
autocmd!
autocmd VimEnter * :silent CocStart
augroup end
let g:coc_user_config = {
\ 'languageserver': {
\ 'fortran': {
\ 'command': '${HOME}/.local/bin/fortls',
\ 'args': ['--lowercase_intrinsics'],
\ 'filetypes': ['fortran'],
\ 'rootPatterns': ['.fortls', '.git/'],
\ }
\}
}

@rudrab
Copy link
Owner

rudrab commented Sep 23, 2024

Please let me know your vim version and vimf90 branch.

@maettgs
Copy link
Author

maettgs commented Sep 24, 2024

Hello,

vim version:
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 28 2024 20:08:35)
macOS version - arm64

Just incase you need it, I compiled it with homebrew using the following options:
Included patches: 1-700
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand +perl +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap +ruby +wildignore
+cursorbind +lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname +sodium -X11
+digraphs +mouse +sound -xattr
-dnd -mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime -xim
+emacs_tags -mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop -xsmp
+ex_extra +mouse_netterm +syntax -xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static

I installed Vimf90 using vim-plug, which as I understand it, pulls from the default branch of the origin.

@rudrab
Copy link
Owner

rudrab commented Sep 24, 2024

let is not allowed in vim9rc. try g:VimF90Leader = ""

@maettgs
Copy link
Author

maettgs commented Sep 24, 2024

let g:mapleader = ","

works well

changing

let g:VimF90Leader = "`"

to

g:VimF90Leader = "`"

results in

Pattern not found: VimF90Leader = "`"

Also, sometimes something like `wr will work but other times not. And I absolutely can't figure out why. Is there a timing issue or...?

@maettgs
Copy link
Author

maettgs commented Sep 24, 2024

The behavior doesn't seem to be normal.

If I type wr in insert mode, it replaces wr with write(fp,*) <++stetement++>
int changes to integer():: variables chr changes to character(len=):: variables

some of the ` snippets seem to work, but I would have expected them to work as leaders...?

@rudrab
Copy link
Owner

rudrab commented Sep 26, 2024

Oh... Now I have understood, i guess. Give me some time...I will marge the devel branch

@maettgs
Copy link
Author

maettgs commented Sep 26, 2024

ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants